“Coins System” plugin for CS 1.6
About this content
A little description:
The plugin adds a non-standard currency to the server—coins. Coins drop from a player when they are killed (they disappear visually and have a model); they are also obtained for a kill. A sound is played when picking up a coin.
Author:
6u3oH
Source:
Clickable
Settings:
#define VIP_FLAG ADMIN_LEVEL_H // Флаг для випа (коэффициент умножения х2)
#define COIN_GIVE_KILL 2 // Сколько монет давать за простое убийство
#define COIN_GIVE_KILL_HEAD 3 // Сколько монет давать за убийство в голову
#define COIN_GIVE_KILL_KNIFE 5 // Сколько монет давать за убийство ножом
#define COIN_GIVE_KILL_GRENADE 6 // Сколько монет давать за убийство гранатой
#define COIN_DROP_COINS // Закоментируйте строку, чтобы монеты с игрока не выпадали
#define COIN_NUM_DROPKILL_MIN 1 // Минимальное кол-во монет, выпадающих при смерти игрока
#define COIN_NUM_DROPKILL_MAX 3 // Максимальное кол-во монет, выпадающих при смерти игрока
#define COIN_TIME_REMOVE 30 // Через сколько секунд удаляются выпавшие монеты (закоментриуйте, чтобы удалялись только в конце раунда)Coins are a kind of core, providing no additional functionality; they are used in your plugins, such as a shop, for example.
Natives:get_user_coins(id) - returns the number of coins a player has.
set_user_coins(id, iNum) - sets the player’s coins to iNum.
Saving by Steam ID is supported.
Natives:get_user_coins(id) - returns the number of coins a player has.
set_user_coins(id, iNum) - sets the player’s coins to iNum.
Saving by Steam ID is supported.


Comments (0)