23.04.2012, 18:15
pawn Код:
CMD:setadminname(playerid, params[])
{
if(PlayerData[ID][AdminLevel] >= 1)
{
new string[52], newname[MAX_PLAYER_NAME];
if(sscanf(params, "s", newname)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setadminname <name>");
format(PlayerData[playerid][AdminName],MAX_PLAYER_NAME,"%s",newname);
format(string, sizeof(string), "You set your admin name to %s", newname);
SendClientMessage(playerid, 0xFFFFFFFF, string);
}
return 1;
}