Jump to content
  • 0

pomoc SetVehicleZAngle


LosO

Dotaz

Ahojte,
Spravil som si do modu ukladanie aut že napíšem /park a zaparkuje mi to vozidlo a uloží mi to tú poziciu do súboru..
Všetko sa aj po respawne vozidla aj po reštarte servera načíta pohode pozicia atd.. ale SetVehicleZAngle sa stále nastavý tak ako bol keď som zobral vozidlo zo spawnu neviete v čom by mohla byť chyba ?

Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0

takto ukladám:

GetVehiclePos(ParkInfo[apar][idecko], x8, y8, z8);
GetVehicleZAngle(ParkInfo[apar][idecko], a8);
dini_FloatSet(st, "X", x8);
dini_FloatSet(st, "Y", y8);
dini_FloatSet(st, "Z", z8);
dini_FloatSet(st, "A", a8);

A takto načítavam:

GetVehiclePos(ParkInfo[h][idecko], x8, y8, z8);
GetVehicleZAngle(ParkInfo[h][idecko], a8);
format(string,50,"Park/%d.txt",h);
x8 = dini_Float(string, "X");
y8 = dini_Float(string, "Y");
z8 = dini_Float(string, "Z");
a8 = dini_Float(string, "A");
SetVehiclePos(ParkInfo[h][idecko], x8, y8, z8);
SetVehicleZAngle(ParkInfo[h][idecko],a8);
Link to comment
Share on other sites

  • 0
  • Hlavní moderátor

alebo jednoduchšie, SetVehicleToRespawn

 

pomocí této fce mu těžko nastaví ten nový úhel

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...