[Help] Trailer Attached
#1

So i've create the job system for truck driver, and now i'm wondering, how can i create if, for example, if the trailer is this

TrailerOne it does some function
TrailerTwo does some other function
TrailerThree does some other function.

so in this command if trailerone is attached it will do some function, others will do some other functions:

pawn Код:
CMD:command(playerid, params[])
{
    // Trailer One
    {
        // Function Here
    }
    // Trailer Two
    {
        // Function Here
    }
    // Trailer Two
    {
        // Function Here
    }
    return 1;
}
Trailers:

Код:
TrailerOne[0] = AddStaticVehicleEx(435,1808.1000000,-2021.4000000,14.2000000,90.0000000,245,245,15); //Trailer 1
TrailerOne[1] = AddStaticVehicleEx(435,1808.1000000,-2021.4000000,14.2000000,90.0000000,245,245,15); //Trailer 1

TrailerTwo[0] = AddStaticVehicleEx(450,1672.6000000,-2075.1000000,14.3000000,270.0000000,93,1,15); //Trailer 2
TrailerTwo[1] = AddStaticVehicleEx(435,1808.1000000,-2021.4000000,14.2000000,90.0000000,245,245,15); //Trailer 1

TrailerThree[0] = AddStaticVehicleEx(591,1808.2000000,-2035.6000000,14.2000000,90.0000000,245,245,15); //Trailer 3
TrailerThree[1] = AddStaticVehicleEx(591,1808.2000000,-2035.6000000,14.2000000,90.0000000,245,245,15); //Trailer 3
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)