02.02.2011, 18:26
(
Последний раз редактировалось jaksimaksi; 03.02.2011 в 13:50.
)
solved
dcmd_nick(playerid, params[])
{
new vardas[MAX_PLAYER_NAME];
GetPlayerName( playerid, vardas, 24 );
frename(vardas[playerid],params[playerid]);
SetPlayerName(playerid, params);
new cFile[128], cName[MAX_PLAYER_NAME];
GetPlayerName(playerid,cName,sizeof(cName));
DINI_fcopytextfile(cName, params);
dini_Remove(cName);
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
new string[128];
format(string, sizeof(string),"changed to %s",params);
return SendClientMessage(playerid,RED,string);
}
new name[MAX_PLAYER_NAME + 12];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(name, sizeof name, "/Users/%s.usr", name);
dcmd_nick(playerid, params[])
{
new name[MAX_PLAYER_NAME + 12];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(name, sizeof name, "/Users/%s.usr", name);
DINI_fcopytextfile(name, params);
dini_Remove(name);
SetPlayerName(playerid, params);
}