[AJUDA]anti-Weapon-hack
#8

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 );
                }
            }
        }
    }
}
Tenta assim
Reply


Messages In This Thread
[AJUDA]anti-Weapon-hack - by Victor_Souz4 - 18.11.2011, 12:06
Re: [AJUDA]anti-Weapon-hack - by Bruno[]Lima - 18.11.2011, 12:17
Re: [AJUDA]anti-Weapon-hack - by Victor_Souz4 - 18.11.2011, 12:20
Re: [AJUDA]anti-Weapon-hack - by Victor_Souz4 - 22.11.2011, 12:12
Re: [AJUDA]anti-Weapon-hack - by Cristhian - 22.11.2011, 12:34
Re: [AJUDA]anti-Weapon-hack - by Victor_Souz4 - 22.11.2011, 15:40
Re: [AJUDA]anti-Weapon-hack - by Lуs - 22.11.2011, 15:49
Re: [AJUDA]anti-Weapon-hack - by Pharrel - 22.11.2011, 15:53
Re: [AJUDA]anti-Weapon-hack - by Victor_Souz4 - 23.11.2011, 11:30
Re: [AJUDA]anti-Weapon-hack - by rjjj - 23.11.2011, 12:03

Forum Jump:


Users browsing this thread: 5 Guest(s)