Jump to content
  • 0

Nu dispar masinile


eXtreMe96

Question

4 answers to this question

Recommended Posts

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,600000);
}

Si ar trebui sa mearga.

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

Link to comment
Share on other sites

Mia aparut un warn

C:\Documents and Settings\Admin\??????? ????\3b\gamemodes\SGM.pwn(1630) : warning 209: function "AddStaticVehicleRespawn" should return a value

Ce fac cu el cum il rezolv

atunci in loc de

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,600000);
}
pui
stock AddStaticVehicleRespawn(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2) return AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2,600000);

si nu-ti mai da nici o eroare + merge :D

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.