08.05.2014, 16:00
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:
Trailers:
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;
}
Код:
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