20.02.2014, 14:27
command /adminname can make nick name admin duty before, like Kurnia_Rocki was /aduty is kurniarocki
COMMAND:aname(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "{ff0000}[ERROR]{ffffff} You are not allowed to use this command");
new aNameValue[125];
if(sscanf(params, "s", aNameValue)) return SendClientMessage(playerid, COLOR_WHITE, "/aname [Admin name]");
myStrcpy(PlayerInfo[playerid][aName], aNameValue);
new stringaName[250];
format(stringaName, sizeof(stringaName), "%s your Administrator name is now registered as: %s", PlayerName(playerid), aNameValue);
SendClientMessage(playerid, stringaName);
return 1;
}
pawn Код:
|