SA-MP Forums Archive
Get Vehicle Type - 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: Get Vehicle Type (/showthread.php?tid=411736)



Get Vehicle Type - maiky1499 - 30.01.2013

I'm working on a system that will work only on some of the vehicles looks like this:
Код:
if(veh = 415)
{
}
I've tried many definations for the veh but not working, can anyone give me a right one, what veh =.
That only if player in veh 415 then the command will work and there's else that will send him a message.


Re: Get Vehicle Type - LarzI - 30.01.2013

You wan't model id? In that case
pawn Код:
new
    veh = GetVehicleModel( vehicleid )
;
// vehicleid may have to be replaced by something else - it really depends on where you use this