Help godcheck
#1

I don't know if it can found cheater, but why it kick honest players?
pawn Код:
dcmd_godcheck(playerid, params[])
{
    new
        id;
    if(IsPlayerAdmin(playerid))
    {
        if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usa: \"/godcheck <playerid>\"");
        else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
        else
        {
            GetPlayerHealth(id, healthi);
            SetPlayerHealth(id, 100);
            godcount[id] = 100;
            while(godcount[id] > 50)
            {
                GetPlayerHealth(id, healthb);
                SetPlayerHealth(id, healthb-1);
                godcount[id]--;
                if(healthb-1 != godcount[id]) return Kick(id);
                if(godcount[id] == 50) {
                    SendClientMessage(playerid, 0xFF0000AA, "Cheat Not Found!");
                    SetPlayerHealth(id, healthi);
                }
            }

        }
    } else SendClientMessage(playerid, 0xFF0000AA, "RCON OR GTFO!");

    return 1;
}
Reply
#2

i need it 2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)