SA-MP Forums Archive
Server admin CMDS with server moderator CMDS - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Server admin CMDS with server moderator CMDS (/showthread.php?tid=110304)



Server admin CMDS with server moderator CMDS - makogemata - 25.11.2009

Code:
How can i make some admin-cmds to mod-cmds..

My admin LVL is 1337..
Should i make server moderator CMDS to whatever nr ..etc 1335 .. 
Code:
if (strcmp("/adhelp", cmdtext, true, 10) == 0) // Shows Admin Command List
{
if(PlayerAdminLevel[playerid] == 1337)
{
TO?:
Code:
if (strcmp("/adhelp", cmdtext, true, 10) == 0) // Shows Admin Command List
{
if(PlayerAdminLevel[playerid] == 1337)
{
if(PlayerAdminLevel[playerid] == 1335)
Code:
And in player scriptfile :

password_hash=307692464
money=14914
bankcash=5000
loancash=0
cashinsured=0
autobahnowner=0
regplayer=0
carwinner=0
score=-2
team=0
skin=0
jailtime=0
wallet=0
drugs=0
drugbagy=0
adminlevel=1337
teamkills=0
There are more things !
just like
Code:
adminlevel=1337
then i add this thing more?
Code:
adminlevel=1335
Please help?