[Ajuda] comando de adm
#2

pawn Код:
if(strcmp(cmd, "/daradmin", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        tmp = strtok(cmdtext, idx);
        static id, nivel;
       
        if(!strlen(tmp))
            return SendClientMessage(playerid, COLOR_GRAD2, "USO: /daradmin[playerid/Parte-do-Nick] [nivel]");
           
        id = strval(tmp);
           
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
            return SendClientMessage(playerid, COLOR_GRAD2, "USO: /daradmin[playerid/Parte-do-Nick] [nivel]");
       
        nivel = strval(tmp);
           
        GetPlayerName(playerid, nome, sizeof nome);
        if(PlayerInfo[playerid][pAdmin] >= 4999)
        {
            PlayerInfo[id][pAdmin] = nivel;
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "Sem Autorizaзгo.");
        }
    }
    return 1;
}
Reply


Messages In This Thread
comando de adm - by Felipe_Wesker - 01.11.2012, 22:15
Re: comando de adm - by Victor' - 01.11.2012, 22:22
Re: comando de adm - by Felipe_Wesker - 02.11.2012, 12:17
Re: comando de adm - by ForT - 02.11.2012, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)