Command error
#4

Quote:
Originally Posted by UFF
Посмотреть сообщение
TRY THIS!

Код:
if(gTeam[playerid] == TEAM_COP || Player[playerid][AccountLevel] < 5) return SCM(playerid, COLOR_LIGHTRED, "* You must be a law enforcement officer to remove a roadblock.");
Dude, you setted it like this
Код:
gTeam[playerid] == TEAM_COP
it will now check that if the player is cop then he get that error that he needs to be law.

Edit: Use This
PHP код:
if(gTeam[playerid] != TEAM_COP && Player[playerid][AccountLevel] < 5) return SCM(playeridCOLOR_LIGHTRED"* You must be a law enforcement officer to remove a roadblock."); 
&& will check that if the player is anything from those 2 options then he will be allowed to use the cmd.
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: 1 Guest(s)