[help]
#2

pawn Код:
if (strcmp(cmd, "/removeadm", true)==0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1338)
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "USE: /removeadm [PlayerName]");
                return 1;
            }
            PlayerInfo[playerid][pAdmin] = 0;
        }
        return 1;
    }
Wow, you way out did yourself here. This is all you need. BTW this will remove YOUR admin not the [Playname]'s admin since you never defined him or tried to detect him in the command.
Reply


Messages In This Thread
[help] - by Guerek - 17.07.2010, 05:29
Re: [help] - by Venturas - 17.07.2010, 05:31
Re: [help] - by Guerek - 17.07.2010, 05:33
Re: [help] - by Venturas - 17.07.2010, 05:34

Forum Jump:


Users browsing this thread: 1 Guest(s)