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

RSS[L4D2] Shop (29 April 2021)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Descptions:
Well, it is a plugin updated from [L4D2] Item buying System v1.36
I re-coded the source and updated more functions.

Features:
  • Save functions (Using SQLite Database)
  • More useful information for clients
  • Collected all items into the shop
  • Special Functions (Trial / Permanent)
  • Special Bag (Enable/Disable Special Functions)
  • Points Transfer
  • Handling Fee (for Points Transfer only)
  • Admin Menu (Reward, Confiscate, Set)
  • Log actions to the log file
  • Multiple Languages
  • New code style
  • etc.

How to use?
  • Type !buy in the game to open Shop menu.
  • type !admin and find 'Shop Commands' to open the shop admin menu
  • type !kill to suicide
  • Edit an item cost in the cfg to -1 to disable the item
  • You can copy others plugin functions to make your own special functions.

When will save points?
To avoid making the server lag, I just added two triggers for it.
  • Round end
  • Player disconnected

Some cfg:
Code:

// Will server save points? 0=OFF, 1=On
db_on "1"

// Will clear points every round? 0=OFF, 1=On (works with db_on=0 only)
cvar_round_clear_on "0"

// Will notify all players when a player buy an item? 0=OFF, 1=On
cvar_buy_notify_all_on "1"

// How many points a flamethrower costs. -1=Disabled
cvar_cost_flamethrower "-1"

Notice:
I have just tested on Coop, versus is not tested.
If you use it on versus, and found some bugs, please feel free to let me know.

Pre-Installation:
Nope.

Installation:
Just unzip it to the sourcemod directory.

Translations:
Only en, zho, chi

Attached Files
File Type: sp Get Plugin or Get Source (l4d2_shop.sp - 106.3 KB)
File Type: zip l4d2_shop.zip (82.3 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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