[HELP] checking 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: [HELP] checking car (
/showthread.php?tid=565335)
[HELP] checking car -
V4at - 26.02.2015
Hi, I need to check a specific car with if(.... but I don't know how.
I'm thinking like this:
pawn Код:
elegy = CreateVehicle(558,-170.4869,43.2909,4.8867,340.1460,1,255, 10000); // car
And how to use that with if :/
Re: [HELP] checking car -
Beckett - 26.02.2015
What do you exactly mean and want?
Re: [HELP] checking car -
CalvinC - 26.02.2015
Something like this:
pawn Код:
if(GetPlayerVehicleID(playerid) == elegy);
GetPlayerVehicleID will get the vehicle ID that a player is in, so it basically checks if the vehicle the player is in is that vehicle you created.
Re: [HELP] checking car -
V4at - 26.02.2015
Quote:
Originally Posted by CalvinC
Something like this:
pawn Код:
if(GetPlayerVehicleID(playerid) == elegy);
GetPlayerVehicleID will get the vehicle ID that a player is in, so it basically checks if the vehicle the player is in is that vehicle you created.
|
Yes it works.