30.10.2010, 19:35
Tenta assim>
pawn Код:
forward AntiShit();
public OnGameModeInit()
{
SetTimer("AntiShit", 1, true);
return 1;
}
public AntiShit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
// AntiMoneyHack(i);
AntiWeaponHack(i);
}
return 1;
}
AntiWeaponHack(playerid)
{
new string[256], nome[MAX_PLAYER_NAME];
if(GetPlayerWeapon(playerid) != 0 || 1 || 4 || 5 || 6 || 24 || 25 || 29 || 30 || 31 )
{
GetPlayerName(playerid, nome, sizeof(nome));
ResetPlayerWeapons(playerid);
format(string, sizeof(string), "[SERVER] %s foi banido pela CPU. (Razгo: Weapon-Hack)", nome);
SendClientMessageToAll(COR_CINZA, string);
//Ban(playerid);
return 1;
}
return 1;
}

