Участник
Пользователь
- Сообщения
- 51
- Реакции
- 6
Здравствуйте форумчане. Не подскажите, как правильно привязать к плагину >>>тык<<< натив бонусов /anew от >AES<.
Я пробовал изменить cshop_settings.inc. Но увы бонусы aes не считываюся как поинты в магазине.
Я пробовал изменить cshop_settings.inc. Но увы бонусы aes не считываюся как поинты в магазине.
#if defined _cshop_settings_included
#endinput
#endif
#include <cstrike>
#define _cshop_settings_included
#define DEFAULT_SOUND "items/gunpickup2.wav"
#define FLAG_ADMIN ADMIN_BAN
#define LANG_TYPE LANG_SERVER
#define MAX_ITEMS 100
/*
* Change the lines below if you want to use a native for your money currency, e.g. Ammo Packs, BaseBuilder Credits, JBPacks, etc.
* Example (%1 = id | %2 = amount):
native aes_get_player_bonus(%1)
native aes_set_player_bonus(%1, %2)
#define get_user_money(%1) aes_get_player_bonus(%1)
#define set_user_money(%1,%2) aes_set_player_bonus(%1, %2)
*/
#define get_user_money(%1) cs_get_user_money(%1)
#define set_user_money(%1,%2) cs_set_user_money(%1, %2)
/* Don't touch this line unless you know what you're doing */
#define take_user_money(%1,%2) set_user_money(%1, get_user_money(%1) - %2)
#endinput
#endif
#include <cstrike>
#define _cshop_settings_included
#define DEFAULT_SOUND "items/gunpickup2.wav"
#define FLAG_ADMIN ADMIN_BAN
#define LANG_TYPE LANG_SERVER
#define MAX_ITEMS 100
/*
* Change the lines below if you want to use a native for your money currency, e.g. Ammo Packs, BaseBuilder Credits, JBPacks, etc.
* Example (%1 = id | %2 = amount):
native aes_get_player_bonus(%1)
native aes_set_player_bonus(%1, %2)
#define get_user_money(%1) aes_get_player_bonus(%1)
#define set_user_money(%1,%2) aes_set_player_bonus(%1, %2)
*/
#define get_user_money(%1) cs_get_user_money(%1)
#define set_user_money(%1,%2) cs_set_user_money(%1, %2)
/* Don't touch this line unless you know what you're doing */
#define take_user_money(%1,%2) set_user_money(%1, get_user_money(%1) - %2)