Jump to content
  • 0

Nu se destruge masina :)


Samy Romafia

Question

3 answers to this question

Recommended Posts

Incearca asa , am scis la fiecare de ce e asa

Si daca nu e bine fa un postreply sau edit si scrie la e folosesti aia si mai mutle detalii

public OnPlayerEnterRaceCheckpoint(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetPlayerPos(playerid, -294.9171,1538.8501,75.5671);
DestroyVehicle(i);
DisablePlayerRaceCheckpoint(playerid);

sau poti pune asta in loc de destroy
	SetVehicleToRespawn(carid); in loc de carid pui id de la masina

Link to comment
Share on other sites

Incearca asa , am scis la fiecare de ce e asa

Si daca nu e bine fa un postreply sau edit si scrie la e folosesti aia si mai mutle detalii

public OnPlayerEnterRaceCheckpoint(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetPlayerPos(playerid, -294.9171,1538.8501,75.5671);
DestroyVehicle(i);
DisablePlayerRaceCheckpoint(playerid);

sau poti pune asta in loc de destroy
	SetVehicleToRespawn(carid); in loc de carid pui id de la masina
Fail! ... i ce e ? nici nu l-ai definit, si sa pui id e naspa Nu dispare masina pentru ca jucatorul nu mai este in ea, cum e corect:
if(IsPlayerInAnyVehicle(playerid)) { DestroyVehicle(GetPlayerVehicleID(playerid)); }
SetPlayerPos(playerid, -294.9171,1538.8501,75.5671);
DisablePlayerRaceCheckpoint(playerid);
Ca sa se respawneze:
if(IsPlayerInAnyVehicle(playerid)) { SetVehicleToRespawn(GetPlayerVehicleID(playerid)); }
SetPlayerPos(playerid, -294.9171,1538.8501,75.5671);
DisablePlayerRaceCheckpoint(playerid);

Eh, tot eu te-am ajutat :))

Link to comment
Share on other sites

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.