Why doesn't this work? ;S
#1

This code should be a simple weapon hacker ban thingy but for some odd reason it bans random ppl when they spawn...

Код:
forward UpdatePlayer(playerid);
public UpdatePlayer(playerid)
{
	new string[128];

	if((GetPlayerWeapon(playerid) == 35) || (GetPlayerWeapon(playerid) == 36) || (GetPlayerWeapon(playerid) == 37) || (GetPlayerWeapon(playerid) == 38))
	{
	    format(string,sizeof(string),"[BANNED] System banned %s [REASON: Weapon hack]",pInfo[playerid][name]);
	    SendClientMessageToAll(COLOR_WHITE,string);
	    Ban(playerid);
		KillTimer(UpdateTimer[playerid]);
	}
return 1;
}
Ive got the UpdatePlayer timer all set up and I know it works because I've got other stuff in that timer aswel...
Cheers.
Reply


Messages In This Thread
Why doesn't this work? ;S - by Nameless303 - 25.09.2010, 17:04
Re: Why doesn't this work? ;S - by willsuckformoney - 25.09.2010, 17:06
Re: Why doesn't this work? ;S - by Nameless303 - 25.09.2010, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)