can some one help me? only work as rcon. if is player normal will kick or ban
#6

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(!IsPlayerAdmin(playerid))
    {
        if(GetPlayerWeapon(playerid) == 38) // minigun checked
        {
            new string[128];
            new playername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, playername, sizeof(playername));
            format(string, sizeof(string), "*** %s (ID: %d) (CHEATs DETECTED) Cheats Detected [MINIGUN].", playername,playerid);
            SendClientMessageToAll(COLOR_PINK, string);
            GameTextForPlayer(playerid,"BAN FOR HACKER USE MINIGUN",4000,5);
            Ban(playerid);
        }
    }
    return 1;
}
this was written fast and it's not tested. although, i advise you to use a 1000ms timer to check for weapon hacks.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)