Posts: 238
Threads: 39
Joined: Apr 2012
Reputation:
0
Hey guys, I have a problem. Well it's about like a admin help command.So when the admin type like /adminhelp or something, it'll only shows the commands that are for their admin rank.
How do you do that?
Maybe you can show me how to do it.
Or give me a code?
Really need help with it.
Posts: 439
Threads: 62
Joined: Apr 2012
Here is a blank one for an easier start.
pawn Код:
CMD:ahelp(playerid, params[])
{
if(PlayerInfo[playerid][pAdminLevel] > 1)
{
//commands here.
}
else if(PlayerInfo[playerid][pAdminLevel] > 2)
{
//commands here
}
return 1;
}
Posts: 98
Threads: 0
Joined: May 2012
Reputation:
0
It really depends on what admin system you're using.
Posts: 439
Threads: 62
Joined: Apr 2012
Quote:
Originally Posted by Edward156
It really depends on what admin system you're using.
|
No it doesn't, he asked for a command on showing a list of commands for a specific admin rank.
You sir, are either stupid or just stupid.
Posts: 238
Threads: 39
Joined: Apr 2012
Reputation:
0
Then how can I make the code like a higher admin can show the all the commands that are lower admin rank commands?
Posts: 138
Threads: 17
Joined: Jan 2011
Reputation:
0
Check the first reply. I already put the clear example. Let me explain. Just edit the first reply of mine's variable to the admin variable you following mine admin rank variable is "pAdmin" and the rank number. Then edit the command that you need for respective admin rank. When you do /ah ingame the script will execute upto the rank you have. Got it?
If not i will explain when i get my pc back or anyone will help you.
Send via mobile.