Is a car - 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: Is a car (
/showthread.php?tid=369737)
Is a car -
Larry123 - 18.08.2012
Hello, can someone give me this code, what checks that vehicle model id belongs to CAR or NOT. I mean like:
Код:
if(IsCar(vehicle))
{
SendClientMessage(playerid, -1, "You sit in car.");
}
else
{
SendClientMessage(playerid, -1, "You Don`t sit in car.");
}
I hope you understand :P
Re: Is a car -
Tom1412 - 18.08.2012
DO you want to know if they are in a vehicle?
Re: Is a car -
Mauzen - 18.08.2012
There are several released functions that do that job, searching helps
e.g. this
http://forum.sa-mp.com/showthread.ph...t=isvehiclecar
Re: Is a car -
Larry123 - 18.08.2012
Thanks you :P