[Ajuda] Sobre Mensagens do /Daradmin
#1

Vejam, criei esse comando.
Tб funcionando normalmente, mais tem uma coisa que quero saber.

Tipo nesse comando, quando alguem for setado aparecer o nivel que foi.
" Voce foi setado de adiministrador Level [%d] ".

pawn Код:
CMD:daradmin(playerid, params[])
{
    new id, nivel;
    new name[MAX_PLAYER_NAME], string[100];
    if(PlayerInfo[playerid][pAdmin] < 3 && !IsPlayerAdmin(playerid)) return SCM(playerid, Cor_Erro, "ERRO: Vocк nгo й um Admin ou nгo tem level.");
    if(sscanf(params, "ud", id, nivel)) return SCM(playerid, Cor_Amarelo, "USE: /Daradmin [ID] [Nivel]");
    if(nivel < 0 || nivel > 3) return SCM(playerid, Cor_Erro, "ERRO: Apenas tem 3 Niveis de Admin.");
    if(!IsPlayerConnected(playerid)) return SCM(playerid, Cor_Erro, "ERRO: O jogador nгo estб conectado.");
    PlayerInfo[id][pAdmin] = nivel;
    GetPlayerName(id, name, sizeof(id));
    format(string, sizeof(string), "AdmCMD: Vocк foi promovido de Adiministrador por %s.", pegarnome(playerid), pegarnome(id));
    SCMTA(Cor_Setar, string);
    return 1;
}
Tem como?
Reply
#2

pawn Код:
CMD:daradmin(playerid, params[])
{
    new id, nivel;
    new name[MAX_PLAYER_NAME], string[100];
    if(PlayerInfo[playerid][pAdmin] < 3 && !IsPlayerAdmin(playerid)) return SCM(playerid, Cor_Erro, "ERRO: Vocк nгo й um Admin ou nгo tem level.");
    if(sscanf(params, "ud", id, nivel)) return SCM(playerid, Cor_Amarelo, "USE: /Daradmin [ID] [Nivel]");
    if(nivel < 0 || nivel > 3) return SCM(playerid, Cor_Erro, "ERRO: Apenas tem 3 Niveis de Admin.");
    if(!IsPlayerConnected(playerid)) return SCM(playerid, Cor_Erro, "ERRO: O jogador nгo estб conectado.");
    PlayerInfo[id][pAdmin] = nivel;
    GetPlayerName(id, name, sizeof(id));
    format(string, sizeof(string), "AdmCMD: Vocк foi promovido de Adiministrador Nivel [%d], por %s.", nivel, pegarnome(playerid));
    SCMTA(Cor_Setar, string);
    return 1;
}
Reply
#3

Puts, mais tб em 'SendClientMessageToAll'.
Como coloca apenas para quem recebeu?
Reply
#4

Quote:
Originally Posted by Gabriel Santana
Посмотреть сообщение
Puts, mais tб em 'SendClientMessageToAll'.
Como coloca apenas para quem recebeu?
Nossa velho, na boa, se vocк nгo saber isso, se mata PQP.


pawn Код:
SendClientMessage(id, COR, string);
Reply
#5

kkkk Osso hein
Reply
#6

Nй Richard ._.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)