#include #include #include #pragma semicolon 1 new CvarMaxKills; new iMaxKills; public plugin_cfg() iMaxKills = get_pcvar_num(CvarMaxKills); //========================================================================= public plugin_init() { new const PLUGIN_NAME[] = "100 kills = rs", PLUGIN_VERS[] = "1.2", PLUGIN_AUTH[] = "GhosT ***"; register_plugin(PLUGIN_NAME, PLUGIN_VERS, PLUGIN_AUTH); register_event("DeathMsg", "DeathMsg", "a"); CvarMaxKills = register_cvar("MaxKillsReset", "1"); } public DeathMsg() { new iAttacker = read_data(1); if(get_user_frags(iAttacker) >= iMaxKills && iMaxKills >= 1) { new iAttackerName[32]; get_user_name(iAttacker, iAttackerName, sizeof(iAttackerName) - 1); set_user_frags(0, 0); hl_set_user_deaths(0, 0); client_print(0, print_chat, "----------------------------------------------"); client_print(0, print_chat, "[RESET] Scorul tuturor jucatorilor a fost resetat !"); client_print(0, print_chat, "[RESET] Deoarece %s a atins 100 fraguri !", iAttackerName); client_print(0, print_chat, "----------------------------------------------"); } return PLUGIN_CONTINUE; }