Jump to content
  • 0

Respawn masini


TheGodfather

Question

Salut, masinile se respawneaza la un interval de timp daca cineva nu e in ele. Am pus peste tot unde e SetVehicleToRespawn() un mesaj unic, ca sa imi dau seama unde e problema. Dar cand masina se respawneaza nu apare niciun mesaj, tin sa mentionez ca mesajul e pus cu SendClientMessageToAll. Deci nu exista sansa sa se fi trimis si sa nu il fi vazut. Am gamemode hpq123 bhood.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

Doar o idee nu spun ca asta e problema dar daca ai masinile cu CreateVehicle unul dintre parametri este respawn_delay

CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, addsiren=0)

Atat timp cat nu este -1 masinile tale for fi respawnate automat in functie de acel delay (secunde) daca nu sunt folosite

Link to comment
Share on other sites

  • 0
1 hour ago, TheGodfather said:

Salut, masinile se respawneaza la un interval de timp daca cineva nu e in ele. Am pus peste tot unde e SetVehicleToRespawn() un mesaj unic, ca sa imi dau seama unde e problema. Dar cand masina se respawneaza nu apare niciun mesaj, tin sa mentionez ca mesajul e pus cu SendClientMessageToAll. Deci nu exista sansa sa se fi trimis si sa nu il fi vazut. Am gamemode hpq123 bhood.

incearca SendClientMessage(playerid, COLOR_WHITE, "Masina a fost respawnata cu succes!");

sau incearca sa formatezi mesajul, format(string, sizeof(string), "%s si-a respawnat masina!", GetName(playerid));

Link to comment
Share on other sites

  • 0
16 minutes ago, Banditul said:

Doar o idee nu spun ca asta e problema dar daca ai masinile cu CreateVehicle unul dintre parametri este respawn_delay

CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, addsiren=0)

Atat timp cat nu este -1 masinile tale for fi respawnate automat in functie de acel delay (secunde) daca nu sunt folosite

Aceasta era problema, multumesc frumos pentru ajutor!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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