SA-MP Forums Archive
Help with a function - 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: Help with a function (/showthread.php?tid=575244)



Help with a function - Tess - 25.05.2015

Hi i have a problem with my car ownership the problem is that i want to unable using the command for put the vehicle when you already are in a vehicle. What function should i put?


Re: Help with a function - amirm3hdi - 25.05.2015

pawn Код:
If ( !IsPlayerInAnyVehicle(playerid) ) return 0; // or send the player a message to let em know...
If the player is in any vehicle the command will not work, put it on top.


Re: Help with a function - Tess - 25.05.2015

Thank you it is working