18.10.2010, 16:36
Comando Simples de mudar o nick, agora se vc quiser um que mude no arquivo do player й uma coisa toltalmente diferete.
pawn Код:
if(strcmp(cmd, "/mudarnick", true) ==0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA, "USO: /mudarnick [novonick]");
return 1;
}
new novonick;
novonick = strval(tmp);
SetPlayerName(playerid, novonick);
new String[100];
format(String, sizeof(String), "Vocк mudou seu NickName para %s", novonic);
SendClientMessage(playerid,0x00FF00AA,String);
return 1;
}