11.03.2009, 23:51
pawn Код:
// Top Of Script
new KillsTimer;
new Kills[MAX_PLAYERS];
// OnGameModeInit
KillsTimer = SetTimer("ResetKills", 180 000, 1);
// OnGameModeExit
KillTimer(KillsTimer);
// OnPlayerDeath
Kills[killerid]++;
if(Kills[killerid] == 5)
{
SendClientMessage(killerid, COLOR_RED, "GTFO");
TogglePlayerControllable(killerid, 0);
Kick(killerid);
}
// Bottom Of Script
public ResetKills()
{
for(new i; i < MAX_PLAYERS; i++)
{
Kills[i] = 0;
}
return 1;
}