Jump to content

Vehicul la coordonatele jucătorului.


Recommended Posts

Salut.Mi-am adăugat în comanda /v pentru admini, Get Car.

Adică să aduci mașina la tine din lista ta de vehicule.

Eu am încercat 

new Float: slx, Float: sly, Float: slz;
GetPlayerPos(playerid, slx, sly, slz);
SetVehiclePos(OwnedVeh(personalcar[0][playerid]), slx+6,sly+6,slz+6);

Însă degeaba.Nu merge.

Vreo idee?

Link to comment
Share on other sites

  • 2 weeks later...

aceasta functie nu returneaza id-ul masini. returneaza id-ul din baza de date daca nu ma insel.

poti face ceva gen

Adaugi la CarInfo. 


apoi cautia functia care incarca masinile personale 


o sa fie ceva gen.     x = createveh...

db = valoarea din baza de date. pui cum este si la celelalte

apoi faci     CarInfo[db][cInGameID] = x;


si in final 

SetVehiclePos(CarInfo[OwnedVeh(personalcar[0][playerid])][cInGameID], slx+6,sly+6,slz+6);
Edited by nobilzeusAdv






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.

Reply to this topic...

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