Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[L4D & L4D2] Survivor Starter Pack


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Introduction

This is just a simple plugin I wrote because I was bored. Basically, server owners can set what loadouts each player starts with. Bots share the same loadout since their "ID" is just "BOT" so there's no point in even setting a loadout for each of them.

How It Works

When a player joins, the plugin looks for their Steam ID in the config file. If it's not listed, they will be given the default pack. When the plugin is reloaded, the plugin will give players the same loadout again.

Command

sm_starter <#userid|name> "item1,item2,item3,item4,item5"

Example: sm_starter @me "smg,pistol,pain_pills" (Character limit for loadout is 325 including commas.)

KeyValues Settings

PHP Code:

"Survivor Starter Pack"
{
    
"General"
    
{
        
"Plugin Enabled"        "1" // 0: Plugin is off, 1: Plugin is on
        
"Default Pack"            "smg,pistol,pain_pills" // This loadout is used when the player's Steam ID isn't listed below...
    
}
    
// This is my Steam ID as an example...
    
"STEAM_0:1:48199803"
    
{
        
"Starter Pack"            "autoshotgun,knife,molotov,first_aid_kit,adrenaline"
    
}


Bugs

I'm not sure. Let me know.

Notes

1. The config file will be generated in the default cfg/sourcemod folder.
2. Use the sm_starter command to add new Steam IDs to the config file. (You can still manually add Steam IDs yourself out of the game.)

Requirement

SM 1.9

Installation

1. Place survivor_starter_pack.smx inside plugins folder.

Attached Files
File Type: sp Get Plugin or Get Source (survivor_starter_pack.sp - 5.8 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...