SA-MP Forums Archive
Extend Command - 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: Extend Command (/showthread.php?tid=454449)



Extend Command - Pk93 - 29.07.2013

Hello as the topic says i want to extend this command so it works for both IsACopCar and also for IsASasdCar
have been trying adding it but cant get it work, if someone have knowledge about this please help me


Here is the Line

Код:
	if(!IsACopCar(vehicle) != !IsASASDCar(vehicle)) return SCM(playerid, COLOR_INFO, "You are not in a law enforcement vehicle");



Re: Extend Command - SuperViper - 29.07.2013

Replace != with &&.

!= stands for does not equal and && stands for and.


Re: Extend Command - Red_Dragon. - 29.07.2013

Use this format. This is an example
pawn Код:
if(IsACop(playerid) || IsAnAgent(playerid) || IsAHitman(playerid))



Re: Extend Command - Pk93 - 29.07.2013

Yah i solved it thanks maN!