SA-MP Forums Archive
Help godcheck - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help godcheck (/showthread.php?tid=169645)



Help godcheck - silvioct - 20.08.2010

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;
}



Re: Help godcheck - GabryPonte - 22.08.2010

i need it 2