[Help] Trailer Attached
#5

I'm going to guess you created an enum for the trailers at the top of your script.
So you could make something like this.

Код:
enum carTrailers // Enum for carTrailers variable
{
	TrailerOne,
	TrailerTwo,
	TrailerThree,
	
	TrailerFour,
	TrailerFive,
	TrailerSix
}
new Cars[carTrailers];
and then make.

Код:
CMD:command(playerid, params[])
{
	new CarCheck = GetPlayerVehicleID(playerid);
	if (CarCheck == carTrailers[TrailerOne])
	{
	    // Put your function here
	}
}
I think this should work, but not sure as you're not sitting inside the trailer obviously.
Reply


Messages In This Thread
[Help] Trailer Attached - by ShoortyFl - 08.05.2014, 16:00
Re: [Help] Trailer Attached - by Andreas1331 - 08.05.2014, 16:16
Re: [Help] Trailer Attached - by ShoortyFl - 08.05.2014, 16:19
Re: [Help] Trailer Attached - by Kyance - 08.05.2014, 16:26
Re: [Help] Trailer Attached - by Andreas1331 - 08.05.2014, 16:27
Re: [Help] Trailer Attached - by ShoortyFl - 08.05.2014, 16:48
Re: [Help] Trailer Attached - by ShoortyFl - 08.05.2014, 17:21
Re: [Help] Trailer Attached - by Konstantinos - 08.05.2014, 17:40
Re: [Help] Trailer Attached - by ShoortyFl - 08.05.2014, 17:44
Re: [Help] Trailer Attached - by Konstantinos - 08.05.2014, 18:40

Forum Jump:


Users browsing this thread: 5 Guest(s)