készül.
JUDIT: itt van
CMD:changename(playerid, params[]) {
new string[128],
pName[MAX_PLAYER_NAME],
pNew[MAX_PLAYER_NAME],
oFile[100],
nFile[100];
GetPlayerName(playerid, pName, sizeof(pName));
if(sscanf(params, \"s\", pNew)) return SendClientMessage(playerid, -1, \"Írd be az új neved!\");
format(oFile, sizeof(oFile), \"ladmin/users/%s.sav\", udb_encode(pName));
format(nFile, sizeof(nFile), \"ladmin/users/%s.sav\", udb_encode(pNew));
if(!fexist(oFile)) return SendClientMessage(playerid, -1, \"regisztálj!\");
if(fexist(nFile)) return SendClientMessage(playerid, -1, \"ilyen név már létezik\");
DINI_fcopytextfile(oFile, nFile);
format(string, sizeof(string), \"neved megváltoztatva.. új neved: %s\", pNew);
SetPlayerName(playerid, pNew);
return SendClientMessage(playerid, -1, string);
}
nálam mûködött.