22.12.2016, 13:09
(
Last edited by Yaa; 22/12/2016 at 06:38 PM.
)
PHP Code:
CMD:changename(playerid, params[])
{
new string[126], oldname[126];
if(isnull(params)) return SendClientMessage(playerid, COLOR_GREEN, "USAGE: /changename [new name]");
GetPlayerName(playerid, oldname, sizeof(oldname));
SetPlayerName(playerid, params);
format(string, sizeof(string), "* You changed your name from %s to %s", oldname, params);
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}