16.10.2013, 21:20
Quote:
I don't think anyone would be willing to create one for you, but you can do it yourself, here's the steps:
Make another savable variable alongside the current variables you're using. Make a command that will set the player's admin name in the nature of checking if the player has more than admin level 99998, and then save the name to that variable. Add the SetPlayerName to the /aduty name. |
Should look like this
pawn Код:
new
AdminName[ MAX_PLAYERS char]
;
CMD:setadminame(playerid, params[])
{
new
aName [ 24 ],
targetid
;
if(sscanf(params, "is[24]", targetid, aName)) return SendClientMessage(playerid, -1, "/setadminame [Player ID] [Admin Name]");
aName = AdminName[playerid];
return 1;
}
CMD:aduty(playerid, params[])
{
//rest of the code
SetPlayerName(playerid, AdminName[playerid]);
return 1;
}