Jump to content
  • 0

sistem masini personale


yonutzz

Question

3 answers to this question

Recommended Posts

Am rezolvat asta dar am dat de alta ''problema'' cand dau so parchez imi ia foc masina/bubuie si dupa aceea se parcheaza, daca stai in masina mori cand bubuie masina.

else if(strcmp(x_nr,"park",true) == 0)

{

if(!IsPlayerInAnyVehicle(playerid)){return 1;}

if(GetCreatorID(vehicleid)!=0)

{

if (strmatch(VehicleSystem[GetCreatorID(vehicleid)][owner],Spielername(playerid)))

{

new Float:vx,Float:vy,Float:vz,Float:va;

GetVehiclePos(GetPlayerVehicleID(playerid),vx,vy,vz);

GetVehicleZAngle(GetPlayerVehicleID(playerid),va);

VehicleSystem[GetCreatorID(vehicleid)][x]=vx;

VehicleSystem[GetCreatorID(vehicleid)][y]=vy;

VehicleSystem[GetCreatorID(vehicleid)][z]=vz;

VehicleSystem[GetCreatorID(vehicleid)][a]=va;

SetVehicleHealth(GetPlayerVehicleID(playerid),100.0);

SendClientMessage(playerid,WHITE,"You have parked your vehicle here!");

SendClientMessage(playerid,YELLOW,"Your vehicle will now respawn here!");

SaveTool();

}

}

return 1;

}

cred ca aceasta este de la park..
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.