Jump to content
  • 0

Destroy Masina


eXtreMe96

Question

2 answers to this question

Recommended Posts

http://www.sa-mp.ro/forum/index.php?topic=6754.msg42461#msg42461

La 5 minute:

Ca sa nu se respawneze masinile se foloseste

AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2);
Ca sa se respawneze scrie la toate in loc de AddStaticVehicle scrii AddStaticVehicleEx si mai adaugi un parametru, respawn time:
AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2,RESPAWN_TIME);

Sau ca sa se respawneze absolut toate masinile din GM la 10 minute pui astea: (varianta mai scurta fata de ce-am zis mai sus) - sus in script:
#define AddStaticVehicle AddStaticVehicleRespawn
- undeva in script, de preferat dupa masini:
stock AddStaticVehicleRespawn(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2)
{
    AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2,300000);
}

Si ar trebui sa mearga.

NOTA: Se respawneaza dupa 5 minute dupa ce jucatorul s-a dat jos din vehicul.

Ca sa se distruga vehiculul (nu-ti recomand) foloseste DestroyVehicle

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.