08.05.2014, 16:27
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.
and then make.
I think this should work, but not sure as you're not sitting inside the trailer obviously.
So you could make something like this.
Код:
enum carTrailers // Enum for carTrailers variable { TrailerOne, TrailerTwo, TrailerThree, TrailerFour, TrailerFive, TrailerSix } new Cars[carTrailers];
Код:
CMD:command(playerid, params[]) { new CarCheck = GetPlayerVehicleID(playerid); if (CarCheck == carTrailers[TrailerOne]) { // Put your function here } }