Jump to content
  • 0

Question

7 answers to this question

Recommended Posts

  • 0
Posted
trailer[playerid] =  CreateVehicle(591,-110.4858,-1173.0320,2.5198,2,64,1,-1);
SetTimerEx("AttachTrailer", 1500, false, "ii", trailer[playerid], truckercar[playerid]);
SetPlayerCheckpoint(playerid, -2253.1584,-68.5924,35.1719, 15.0);
CP[playerid] = 2; 

si

forward AttachTrailer(trailerid, vehicleid);
public AttachTrailer(trailerid, vehicleid)
{
    AttachTrailerToVehicle(trailerid, vehicleid);
}

 

  • Upvote 2

242086.png

  • 0
Posted
AttachTrailerToVehicle(trailerid, vehicleid);

trailerid - ID-ul trailerului (sau variabila care il defineste)

vehicleid - ID-ul vehiculului (sau variabila care il defineste)

  • Upvote 1

242086.png

  • 0
Posted
30 minutes ago, cOBRa said:

Am facut asta si nu merge, nu se ataseaza automat.

Arata cum ai incercat sa faci, trebuie mai intai sa creezi trailerul si dupa sa il atasezi de vehicul

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
  • 0
Posted
51 minutes ago, cOBRa said:

Am facut asta si nu merge, nu se ataseaza automat.

Trebuie ca mai intai sa se spawneze, si se spawneaza mai greu, pune un timer ca la 1-2 secunde sa se ataseze trailerul de camion.

  • Upvote 1

242086.png

  • 0
Posted

trailer[playerid] =  CreateVehicle(591,-110.4858,-1173.0320,2.5198,2,64,1,-1);
                    AttachTrailerToVehicle(trailer[playerid], truckercar[playerid]);
                    SetPlayerCheckpoint(playerid, -2253.1584,-68.5924,35.1719, 15.0);
                    CP[playerid] = 2;

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.