Jump to content
  • 0

sistem masini personale


Question

Posted

Salut, am luat un sistem de masini personale, cand ma urc intr-o masina ca sa o cumpar  imi spune pretul si ca este de vanzare.Dar cand ma urc in ea fara sa o cumpar pot merge cu masina fara sa fie cumparata.Cum trebuie sa fac ca sa nu mai poata mearga cu masina decat cumparata??

3 answers to this question

Recommended Posts

Posted

Adauga in FS pe deasupra textului unde iti spune s-o cumperi ( Cred ca e la OnPlayerStateChange ) linia;

TogglePlayerControllable(playerid, 0);

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

Posted

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