[HELP] checking car
#1

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 :/
Reply
#2

What do you exactly mean and want?
Reply
#3

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.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)