17.10.2009, 01:08
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); } } } }