[HELP}
#2

Not tested, but maybe it's right. see and tell me

Код:
//Top of GameMode
forward ResetWeapons();
new resetweaponstimer;

//in public GameModeExitFunc()
KillTimer(resetweaponstimer);(optional)

//in public OnGameModeInit()
resetweaponstimer = SetTimer("ResetWeapons", 1000, 1);

//anywhere
public ResetWeapons()
{
  for (new i=0; i < MAX_PLAYERS; i++)
  {
    if (IsPlayerConnected(i))
    {
      if (!Army && GetPlayerWeapon(i) == 39)
      {
		 ResetPlayerWeapons(i);//Or if you prefer, you can use a kick or ban.
        //Ban(i); or Kick(i);
      }
    }
  }
}
Reply


Messages In This Thread
[HELP} - by xxjackoxx - 17.10.2009, 00:37
Re: [HELP} - by KingstoN* - 17.10.2009, 01:08

Forum Jump:


Users browsing this thread: 1 Guest(s)