23.04.2012, 00:53
How can i stop this spamming every half a second that some one has been banned
Thank You
Please Help Me Please
pawn Код:
public OnPlayerUpdate(playerid)
{
foreach(Player, i)
{
new weap = GetPlayerWeapon(i);
if(weap > 0 && Weapon[i][weap] == false)
{
if(GetPlayerState(i) == 1 || GetPlayerState(i) == 2 || GetPlayerState(i) == 3) {
new msg[128];
new Nam[MAX_PLAYER_NAME];
GetPlayerName(playerid,Nam,sizeof(Nam));
format(msg,sizeof(msg),"ANTI WEAPON HACK: %s has been banned from server for spawning a bad weapon!",Nam);
SendClientMessageToAll(0xFF0000FF,msg);
SendClientMessage(playerid, COLOR_RED, "No Hacking");
//ban or warning code here
//Ban or warning code here
//ban or warning code here
//Ban or warning code here
//ban or warning code here
}
}
}
return 1;
}
Thank You
Please Help Me Please