Posts: 701
Threads: 23
Joined: Feb 2007
Reputation:
0
if(admin[playerid] != 4 || omod[playerid] != id) return SendClientMessage(playerid, red, "You cannot use this command.");
That means you cannot use the command if admin[playerid] does NOT equal 4 or if omod[playerid] does NOT equal id
Only you will know if that is correct or not since it's your script.
Posts: 702
Threads: 94
Joined: Dec 2010
Reputation:
0
well i am level 4 but it wont work :S
Posts: 701
Threads: 23
Joined: Feb 2007
Reputation:
0
Maybe it's a problem with omod[playerid] then?
Even if you are level 4, the omod[playerid] can still stop the command being used if you are using ||.
Posts: 702
Threads: 94
Joined: Dec 2010
Reputation:
0
how? sices im lvl 4 i dont think itll even check the OR
It will check the or since the first check failed.
Posts: 702
Threads: 94
Joined: Dec 2010
Reputation:
0
any fix for it? coz i tried being level 4 or being omod ort both but all result in the same thing
Posts: 702
Threads: 94
Joined: Dec 2010
Reputation:
0
man ***** i got confused with your explanation... as i see in your code your using &&. isnt that 'and' and wont it require me to be both lvl 4 and a omodder? (omod is org moddifier :P )? i want either a omod or admin lvl 4 to be able to use the command.