AntiCheat [ Help ]
#2

pawn Код:
stock scriptBan(playerid, reason[])
{
    if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{ff0000}You tried to hack");

    new aString[240];

    GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);


    format(aString, sizeof(aString), "Kick: %s has been kicked By AntiCheat, reason: %s", szPlayerName, reason);
    SendClientMessageToAll(COLOR_LIGHTRED, aString);

    mysql_real_escape_string(aString, aString);
    adminLog(aString);


    Kick(playerid);
    return 1;
}
change ur stock function to this, if u're logged in rcon, then u'll just get client message instead of getting banned/kicked
Reply


Messages In This Thread
AntiCheat [ Help ] - by SHFaCeBook - 02.10.2014, 11:12
Re: AntiCheat [ Help ] - by PMH - 02.10.2014, 12:31

Forum Jump:


Users browsing this thread: 2 Guest(s)