25.09.2010, 17:04
This code should be a simple weapon hacker ban thingy but for some odd reason it bans random ppl when they spawn...
Ive got the UpdatePlayer timer all set up and I know it works because I've got other stuff in that timer aswel...
Cheers.
Код:
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;
}
Cheers.


