15.08.2016, 20:50
Olб.. gostaria de por meu Comando em Dialog.. mais n to conseguindo :/
meu comando normal:
meu comando normal:
pawn Код:
CMD:mudarnick (playerid, params[])
{
new str[60], str2[60], name[32];
if(isnull(params)) return SendClientMessage(playerid, -1, "/mudarnick [novo nick]");
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "LLADMIN/Contas/%s.txt", name);
if(!DOF2_FileExists(str)) return SendClientMessage(playerid, -1, "Vocк nгo possui uma conta.");
format(str2, sizeof(str2), "LLADMIN/Contas/%s.txt", params);
DOF2_RenameFile(str, str2);
SetPlayerName(playerid, params);
return true;
}