[AJUDA] Comando
#7

Aproveitando o Tуpico Aqui , Para nгo Criar Outro, Serб que alguem sabe o Problema deste CMD?

pawn Код:
CMD:daradmin(playerid, params[])
{
    new giveplayerid, SetAdmStr[256], NivelAdmin, sendername[MAX_PLAYER_NAME],giveplayername[MAX_PLAYER_NAME];
    if(!IsPlayerAdmin(playerid) && PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COR_VermelhoClaro, "Vocк Nгo tem Nнvel Suficiente Para Utilizar o Comando!");
    if(sscanf(params, "ud", giveplayerid, NivelAdmin)) return SendClientMessage(playerid, COR_VermelhoClaro, "Uso Correto: /daradmin [ID] [Nнvel]")
    GetPlayerName(playerid, sendername, MAX_PLAYER_NAME);
    GetPlayerName(giveplayerid, giveplayername, MAX_PLAYER_NAME);
    if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COR_VermelhoClaro, "[ERRO]: ID Invбlido!");
    if(NivelAdmin < 0 || NivelAdmin > 10) return SendClientMessage(playerid, COR_VermelhoClaro, "Nнvel Invбlido , Apenas de 1 a 10!");
    format(SetAdmStr, sizeof(SetAdmStr), "{00FFFF}[ADMIN]: Vocк Fez de %s Um Administrador Nнvel %d!",giveplayername,NivelAdmin);
    SendClientMessage(playerid, -1, SetAdmStr);
    format(SetAdmStr, sizeof(SetAdmStr), "{00FFFF}[ADMIN]: Vocк Foi Feito um Administrador Nнvel %d Pelo %s!", NivelAdmin, sendername);
    SendClientMessage(giveplayerid, -1, SetAdmStr);
    PlayerInfo[giveplayerid][pAdmin] = NivelAdmin;
    SalvarDados(giveplayerid);
    return 1;
}
Nгo estou conseguindo dar Admin pra Outra pessoa

@Off - Desculpem o Double Post ^^
Reply


Messages In This Thread
[AJUDA] Comando - by .FuneraL. - 22.05.2012, 18:39
Re: [AJUDA] Comando - by steeldark - 22.05.2012, 18:43
Re: [AJUDA] Comando - by .ThePro - 22.05.2012, 18:50
Re: [AJUDA] Comando - by .FuneraL. - 22.05.2012, 18:51
Re: [AJUDA] Comando - by steeldark - 22.05.2012, 19:03
Re: [AJUDA] Comando - by .FuneraL. - 22.05.2012, 19:11
Re: [AJUDA] Comando - by .FuneraL. - 22.05.2012, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)