08.06.2011, 01:35
Quote:
pawn Код:
|
pawn Код:
if(strcmp(cmdtext, "/mudarnick", true) == 0)
{
if(PlayerInfo[playerid][Logged] == 0) return SendClientMessage(playerid, -1, " Vocк nгo estб logado(a).");
new nick[MAX_PLAYER_NAME];
nick = strtok(cmdtext, idx);
if(!strlen(nick)) return SendClientMessage(playerid, -1, "USO: /mudarnick [NOVO NICK]");
new str[55];
format(str, sizeof(str), "Seu novo nick й %s.", nick);
SendClientMessage(playerid, -1, str);
SetPlayerName(playerid, nick);
return 0x01;
}