Killing the same player without killing anyone else in between or killing a player more than once without you beeing killed by him ?
Example with the 2nd, like the when you dominate someone in TF2:
Code:
new g_iKilled[33][33]
new g_iMaxPlayers
public plugin_init()
{
register_event("DeathMsg", "player_killed", "a")
g_iMaxPlayers = get_maxplayers()
}
public player_killed()
{
new victim = read_data(2)
new killer = read_data(1)
if(id != killer && 1 <= killer <= g_iMaxPlayers)
{
g_iKilled[victim][killer] = 0
if(++g_iKilled[killer][victim] == 3)
{
new szKiller[32]
new szVictim[32]
get_user_name(killer, szKiller, charsmax(szKiller))
get_user_name(victim, szVictim, charsmax(szVictim))
client_print(0, print_chat, "**** %s is dominating %s ****", szKiller, szVictim)
}
}
}
public client_putinserver(id)
{
for(new i = 1; i <= g_iMaxPlayers; i++)
{
g_iKilled[id][i] = 0
g_iKilled[i][id] = 0
}
}
untested :}
EDIT: pff, I forgot this forum doesn't notify me if someone posted while I was writing xD
__________________