25.05.2016, 10:32
Try this
PHP код:
CMD:setname(playerid,params[])
{
if(Info[playerid][Level] >= 2 || IsPlayerAdmin(playerid))
{
new id, name[24], str[130], newname;
if(sscanf(params, "udd", id,name,newname)) return SendClientMessage(playerid,red,"/SetName [Playerid/Name] [New Name]");
GetPlayerName(id,name,24);
format(str,130,"You Changed %s (%d)'s Name to $%d",name,id,newname);
SendClientMessage(playerid,lightblue,str);
format(str,130, "Admin Changed Your Name to $%d",newname);
SendClientMessage(playerid,lightblue,str);
SetPlayerName(id,name);
} else return SendClientMessage(playerid,red,"You are not RCON Admin");
return 1;
}