A Little Help Please
#2

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;
}
Try that, Not tested but should work
Reply


Messages In This Thread
A Little Help Please - by notec100 - 11.03.2009, 23:39
Re: A Little Help Please - by ICECOLDKILLAK8 - 11.03.2009, 23:51
Re: A Little Help Please - by Mikep - 11.03.2009, 23:54
Re: A Little Help Please - by ICECOLDKILLAK8 - 12.03.2009, 00:00
Re: A Little Help Please - by Mikep - 12.03.2009, 00:17
Re: A Little Help Please - by notec100 - 12.03.2009, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)