22.11.2011, 15:53
pawn Код:
public AntiCheatUpdate ( playerid )
{
new slot = GetMaxPlayers ( );
while ( slot -- )
{
if ( IsPlayerConnected( slot ) && !IsPlayerAdmin ( slot )
&& GetPlayerAmmo(playerid) > 0 && GetPlayerState(playerid) != PLAYER_STATE_NONE
&& GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
{
switch ( GetPlayerWeapon( slot ) )
{
case 17,18,35,36,37,38,39,40,44,45:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
new wName[20];
GetWeaponName(GetPlayerWeapon(slot), wName, 20);
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: %s ]",pName,wName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick( slot );
}
}
}
}
}