24.10.2011, 11:59
You can found it in admin filterscripts.
pawn Код:
//Example with zcmd & sscanf
CMD:name(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new id, newname[MAX_PLAYER_NAME];
if(sscanf(params, "ds", id, newname)) return SendClientMessage(playerid, -1, "Syntax: /name [newname]");
SetPlayerName(id, newname);
SendClientMessage(playerid, -1, "The player name has changed.");
return true;
}
return false;
}