AttachTrailerToVehicle - how to ?
#6

Then we'll create a public function and we put a timer on it,I had the same problem.So that code will be like
PHP код:
new Float:xFloat:yFloat:zGetPlayerPos(playerid,x,y,z);
newTrailer[playerid] = CreateVehicle(611,x+4,y,z+1,270.0,-1,-1,15);
SetTimerEx("AttachTrailer"1000false"ii"playeridvehicleid); //It will attach the trailer after 1 sec. 
And now we're creating the "AttachTrailer" function:
PHP код:
forward AttachTrailer(playeridvehicleid);
public 
AttachTrailer(playeridvehicleid)
{
       
AttachTrailerToVehicle(newTrailer[playerid], vehicleid);

If you don't know were to put this function, do a search into your gm for "public" and put this function there near the others.
Reply


Messages In This Thread
AttachTrailerToVehicle - how to ? - by arretdefil - 25.09.2015, 19:26
Re: AttachTrailerToVehicle - how to ? - by Aly - 25.09.2015, 19:30
Re: AttachTrailerToVehicle - how to ? - by arretdefil - 25.09.2015, 19:39
Re: AttachTrailerToVehicle - how to ? - by Aly - 25.09.2015, 19:46
Re: AttachTrailerToVehicle - how to ? - by arretdefil - 25.09.2015, 19:55
Re: AttachTrailerToVehicle - how to ? - by Aly - 25.09.2015, 20:01
Re: AttachTrailerToVehicle - how to ? - by arretdefil - 25.09.2015, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)