forward AntiCheat();
public AntiCheat()
{
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 banstring[120];
new pname[MAX_PLAYER_NAME];
GetPlayerName(i, pname, sizeof(pname)); // ließt den namen des spielers
format(banstring, sizeof(banstring), " ANTICHEAT: %s was been Banned from AntiCheat Reason: Weaponhack.", pname);
SendClientMessageToAll(COL_RED,banstring ); //318
Ban(i);
}
}
}
return 1;
}
Keine ahnung was das Prob ist