/setadminname
#1

Can anyone make a system that you can set admins name like when they type /aduty they're name are changing to firstname. Like only Tony.
Like Horizon Roleplay they have the /setadminname system

And the 99998+ can only /setadminname players admin name.
Reply
#2

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.
Reply
#3

Man, its just because that i arent a scripter. Am i able to find a tutorial or a system that someone already made?
Reply
#4

Please anyone able to help me?
Reply
#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
#6

Now i am getting all different shits

I cant post it


You have included 63 images in your message. You are limited to using 20 images so please go back and correct the problem and then continue again.

Images include use of smilies, the BB code [img] tag and HTML <img> tags. The use of these is all subject to them being enabled by the administrator.
Reply
#7

Could u please help me in teamviewer?
Reply
#8

I hope you just didn't copy what pds2k12 told you, that's just a skeleton version of what you want to do, like a starter pack, and then you enhance that to your needs.

If you didn't just copy and paste it and compile it straight away, put all your warnings / errors in a [ quote ] [ / quote ] quote, and show us the code in [ pawn ] [ / pawn ] tags that you've done up to now. You'll also need to show us the enumeration for the player's savable variables so we can understand how your save files are working etc.
Reply
#9

Well i copied it. As i said before. I arent a scripter.
Reply
#10

Well it won't work then. If you're not a scripter or not willing to learn, by the looks of things, then I don't see what you want here... try and hire a scripter from here to do it for you: https://sampforum.blast.hk/showthread.php?tid=447813.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)