/setadminname
#5

Quote:
Originally Posted by TonyNames
Посмотреть сообщение
Please anyone able to help me?
Quote:
Originally Posted by DanishHaq
Посмотреть сообщение
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.
For god sake, DanishHaq explained it

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;
}
Reply


Messages In This Thread
/setadminname - by TonyNames - 16.10.2013, 19:47
Re: /setadminname - by DanishHaq - 16.10.2013, 20:34
Re: /setadminname - by TonyNames - 16.10.2013, 20:54
Re: /setadminname - by TonyNames - 16.10.2013, 21:10
Re: /setadminname - by Patrick - 16.10.2013, 21:20
Re: /setadminname - by TonyNames - 16.10.2013, 21:34
Re: /setadminname - by TonyNames - 16.10.2013, 21:38
Re: /setadminname - by DanishHaq - 16.10.2013, 21:40
Re: /setadminname - by TonyNames - 16.10.2013, 21:46
Re: /setadminname - by DanishHaq - 16.10.2013, 21:55

Forum Jump:


Users browsing this thread: 1 Guest(s)