SA-MP Forums Archive
How to a continue making commands for level? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to a continue making commands for level? (/showthread.php?tid=399789)



How to a continue making commands for level? - RCS - 15.12.2012

Hi, on my server (SATDM mod) there's only 5 admin levels.
And i'am trying to continue with level6,
i will make my own commands, but what should i put there?
when i make command everyone can use it,
MY Q: how to make that commands to use only level6 admins?
if i need to post more info tell me what i need to post.


Re: How to a continue making commands for level? - park4bmx - 15.12.2012

well the system uses some type of a variable to hold the player level for example
pawn Код:
if(PlayerInfo[playerid][PlayerAdmin] <= 5)//if the player is level 5-
you need to find the variables your system that uses and add it to your command.


Re: How to a continue making commands for level? - RCS - 15.12.2012

Alright i do it. I need to create a new commands thank you for your reply!


Re: How to a continue making commands for level? - Elysian` - 15.12.2012

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
well the system uses some type of a variable to hold the player level for example
pawn Код:
if(PlayerInfo[playerid][PlayerAdmin] <= 5)//if the player is level 5+
you need to find the variables your system that uses and add it to your command.
Nope.. You're wrong.
It's >= 5 not the other way round.

Simply because, using <= 5 is anyone who has level 5 and lower.


Re: How to a continue making commands for level? - park4bmx - 15.12.2012

Quote:
Originally Posted by Windows32
Посмотреть сообщение
Nope.. You're wrong.
It's >= 5 not the other way round.

Simply because, using <= 5 is anyone who has level 5 and lower.
yes i got mixed up my mistake its 5-
i wright one thing and think of other ;X


Re: How to a continue making commands for level? - Elysian` - 15.12.2012

Haha, it's fine


Re: How to a continue making commands for level? - RCS - 15.12.2012

No prob, i do it, now i'am making new commands for level6.