Detecting trailer types wont work?
#4

Under
Код:
dcmd_work(playerid, params[])
Put
Код:
if( GetVehicleModel( GetVehicleTrailer( vehicleid ) ) ==584) 
{ 
    return SendClientMessage( playerid, -1, "Haul Fuel from [LS]Los Santos to [SF]San Fierro with Petrol Trailer!" ); 
}
else if( GetVehicleModel( GetVehicleTrailer( vehicleid ) ) ==435) 
{ 
    return SendClientMessage( playerid, -1, " Haul Drills from [SF]San Fierro to [LS]Los Santos with Cargo Trailer" ); 
}
else
{ 
    return SendClientMessage( playerid, -1, "You Don't have a Trailer!" ); 
}
You can make more trailer types with else if!
Use https://sampwiki.blast.hk/wiki/Vehicles:Trailers
Reply


Messages In This Thread
Detecting trailer types wont work? - by Flybyu - 02.01.2016, 19:03
Re: Detecting trailer types wont work? - by Mister0 - 02.01.2016, 22:24
Re: Detecting trailer types wont work? - by Flybyu - 03.01.2016, 21:41
Re: Detecting trailer types wont work? - by Godey - 04.01.2016, 09:17
Re: Detecting trailer types wont work? - by Flybyu - 04.01.2016, 13:51
Re: Detecting trailer types wont work? - by IceBilizard - 05.01.2016, 04:12
Re: Detecting trailer types wont work? - by Sew_Sumi - 05.01.2016, 04:59
Re: Detecting trailer types wont work? - by Godey - 05.01.2016, 08:20
Re: Detecting trailer types wont work? - by Flybyu - 05.01.2016, 13:09
Re: Detecting trailer types wont work? - by Sew_Sumi - 05.01.2016, 22:03

Forum Jump:


Users browsing this thread: 1 Guest(s)