#include <amxmodx> #include <cstrike> new KillCount[33] public plugin_init() { register_message( get_user_msgid( "DeathMsg" ) , "death" ) register_logevent("ResetKills",2,"1=Round_Start") } public client_disconnect(id) KillCount[id] = 0 public ResetKills(){ new players[32] , inum get_players(players, inum) for(new a = 0; a < inum; ++a) KillCount[a] = 0 } public death() { new attacker = read_data(1); new victim = read_data(2); if(attacker == victim) return PLUGIN_CONTINUE if(cs_get_user_team(attacker) == cs_get_user_team(victim)) return PLUGIN_CONTINUE KillCount[attacker]++ if(KillCount[attacker] == 3) { //if he has killed 3 this round execute a function SomeFunction(attacker) } return PLUGIN_CONTINUE } public SomeFunction(id) { //your code here client_print(id, print_chat, "This is your third kill this round!") }