#include #include #define MAX_PLAYERS 32 new g_iMaxPlayers public plugin_init() { register_plugin("$ Bullet Damage Money $", "Leo_[BH]", "1.0") register_event("Damage", "Event_Damage", "b", "2>0", "3=0") g_iMaxPlayers = get_maxplayers() } public Event_Damage( iVictim ) { if(read_data(4) || read_data(5) || read_data(6)) { new id = get_user_attacker(iVictim) if(1 <= id <= g_iMaxPlayers) { if(is_user_connected(id)) { new my_money; my_money = cs_get_user_money(id) new add_money; add_money = read_data(2) cs_set_user_money(id, my_money + add_money) } } } } /////////////////////////////////////////////////////////// // /// // Àâòîð ïëàãèíà - Leo_[BH] /// // Äåëàþ, ïèøó ïëàãèíû íà çàêàç! /// // http://vk.com/id64427766 /// // http://vk.com/cs_rain /// // Skype: bcnl_leon /// // /// // Ìîé Ìàãàçèí ïëàãèíîâ: /// // http://vk.cc/2pSEjN /// // /// ///////////////////////////////////////////////////////////