22.11.2011, 12:34
pawn Код:
AntiCheatUpdate ( playerid );
public AntiCheatUpdate ( playerid )
{
new slot = GetMaxPlayers ( );
while ( slot -- ) {
if ( IsPlayerConnected( slot ) && !IsPlayerAdmin ( slot ) ) {
if(GetPlayerWeapon( slot ) == 35 )
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Rocket Launcher ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick( slot );
return 1;
}
if(GetPlayerWeapon(slot) == 36)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Bazuca ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick( slot );
return 1;
}//sу continuar..