Jump to content
  • 0

Problema destroy trailer


Tikitaka

Question

Problema intalnita (descriere):Cum as putea face ca atunci cand un tir tracteaza un trailer si tir-ul explodeaza sa dispara automat trailer-ul.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul:

Am pus la OnPlayerStateChange cat si la OnPlayerDeath asa:

 

  1. if(Truck1[playerid] == 1)
  2. {
  3.        DestroyVehicle(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
  4. DisablePlayerCheckpoint(playerid);
  5. Truck1[playerid] = 0;
  6. KillTimer(timert[playerid]);
  7. }

CheckPoint-ul imi dispare, cat si truck1 se seteaza pe 0, deci ceva nu e bine ceva la destroyvehicle, precizez ca trailerul se creeaza cand incepi misiunea.

 

Imagini / Video (optional):
Ati incercat sa rezolvati singur?:da

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

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.