Anti Guns
#1

Hello Everybody.

I made anti guns script.
All script look good but then i take minigun nothing happen.

Script Code In GameMode :

Код:
new BadWeapons[3] =
{
    38, 36, 39
};

forward BadCheck();
public BadCheck()
{
  new weap, string[128], pname[MAX_PLAYER_NAME]; 
    for(new i, b = GetMaxPlayers(); i < b; i++) 
    {
      GetPlayerName(i, pname, sizeof(pname));

      weap = GetPlayerWeapon(i);
      for(new w; w < sizeof(BadWeapons); w++)
      {
            if(weap == BadWeapons[w])
            {
                format(string,sizeof(string),"[ Kick ]%s Kicked For %s.", pname, weap);
                SendClientMessageToAll(COLOR_RED,string);
                ResetPlayerWeapons(i);
                Kick(i);
			}
            return 1;
        }
    }
    return 1;
}
And I Added In OneGameModeInit Timer :

Код:
SetTimer("BadCheck",5000,1);
What can be wrong?
Reply


Messages In This Thread
Anti Guns - by Serifukas - 10.08.2011, 15:15
Re: Anti Guns - by ylleron - 10.08.2011, 15:19
Re: Anti Guns - by Riddick94 - 10.08.2011, 15:22
Re: Anti Guns - by ylleron - 10.08.2011, 15:30
[No subject] - by Serifukas - 10.08.2011, 15:30
Re: Anti Guns - by Riddick94 - 10.08.2011, 15:33
Re: Anti Guns - by ylleron - 10.08.2011, 15:33
Re: Anti Guns - by Serifukas - 10.08.2011, 15:47
Re: Anti Guns - by Riddick94 - 10.08.2011, 15:49
Re: Anti Guns - by Serifukas - 10.08.2011, 15:51
Re: Anti Guns - by Tanush123 - 10.08.2011, 17:37
Re: Anti Guns - by Serifukas - 11.08.2011, 11:59
Re: Anti Guns - by Tanush123 - 11.08.2011, 13:46
Re: Anti Guns - by Serifukas - 11.08.2011, 14:46
Re: Anti Guns - by MadeMan - 11.08.2011, 15:57
Re: Anti Guns - by Tanush123 - 11.08.2011, 17:26
Re: Anti Guns - by Serifukas - 11.08.2011, 18:58
Re: Anti Guns - by Tanush123 - 12.08.2011, 15:50
Re: Anti Guns - by Serifukas - 13.08.2011, 11:57

Forum Jump:


Users browsing this thread: 3 Guest(s)