[Ajuda] Comando /MudarNick
#3

pawn Код:
CMD:mudarnome(playerid, params[])
{
    new L_NOVO_NOME[MAX_PLAYER_NAME];
    if(sscanf(params, "s[MAX_PLAYER_NAME]", L_NOVO_NOME)) return SendClientMessage(playerid, -1, "Uso: /mudarnome [Novo nome]");
    new L_NOME_ANTIGO[MAX_PLAYER_NAME];
    GetPlayerName(playerid, L_NOME_ANTIGO, MAX_PLAYER_NAME);
    SetPlayerName(playerid, L_NOVO_NOME);
    new L_STRING[128];
    format(L_STRING, 128, "%s alterou seu nome para %s!", L_NOME_ANTIGO, L_NOVO_NOME);
    SendClientMessageToAll(-1, L_STRING);
    return 1;
}
Reply


Messages In This Thread
Comando /MudarNick - by Gabriel Santana - 29.07.2012, 15:57
Re: Comando /MudarNick - by humildadeforever - 29.07.2012, 16:04
Re: Comando /MudarNick - by Lуs - 29.07.2012, 16:11
Re: Comando /MudarNick - by Gabriel Santana - 29.07.2012, 16:13
Re: Comando /MudarNick - by Gabriel Santana - 29.07.2012, 16:15
Re: Comando /MudarNick - by DanDRT - 29.07.2012, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)