Command error
#9

Ok gonna test later. About the gteam and admin level check, hold on:

pawn Код:
if(gTeam[playerid] != TEAM_COP && Player[playerid][AccountLevel] < 5
Doing in this way will check if player is not a cop AND has an admin level lower than 5. I don't have to do in this way.

I need to check if is only a civilian (TEAM_CIVILIAN) OR an admin with level 5.

With your check EVERY admin from 0 to 4 is allowed to execute that command (even players since their admin level is 0!).

Or im wrong?
Reply


Messages In This Thread
Command error - by KinderClans - 29.09.2018, 17:15
Re: Command error - by Undef1ned - 29.09.2018, 17:24
Re: Command error - by UFF - 29.09.2018, 17:45
Re: Command error - by CaptainBoi - 29.09.2018, 18:23
Re: Command error - by KinderClans - 29.09.2018, 18:50
Re: Command error - by SaMuRy - 29.09.2018, 19:04
Re: Command error - by CaptainBoi - 29.09.2018, 19:19
Re: Command error - by CaptainBoi - 29.09.2018, 19:28
Re: Command error - by KinderClans - 29.09.2018, 20:26
Re: Command error - by CaptainBoi - 30.09.2018, 04:28

Forum Jump:


Users browsing this thread: 4 Guest(s)