Jump to content

Question

2 answers to this question

Recommended Posts

Posted

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

Posted

Stai oleaka mam incurcat singur ce vreau eu :D Eu am masina de exemplu in strada vrea sa despara peste 5 minute

si de exemplu am luat masina de undeva si se apra inapoi acolo deunde am luato peste 5 minute

lol

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.