26.10.2011, 10:52
pawn Code:
public OnPlayerConnected(playerid)
{
SetPVarInt(playerid, "antyCheat", 1);
//...
}
public OnPlayerSpawn()
{
SetPVarInt(playerid, "antyCheat", 0);
//...
}
public OnPlayerDeath(playerid, killerid, reason)
{
if (GetPVarInt(playerid, "antyCheat") == 1) BanEx(playerid, "Cheat!");
if (GetPVarInt(killerid, "antyCheat") == 1) BanEx(killerid, "Cheat!");
//...
}