Jump to content
  • 0

pomoc Rozházená auta


Frajtr

Dotaz

Stalo se vám někdy že jste hráče teleportovali s interioru a vozidla která máte v int 0 se rozházeli po mapě respektive propadli texturou a vrátili se na náhodné pozice ?

 

Mě to dělá konkrétně když portnu hráče do Jefferson Motel a pak z něj normálně vyleze tak  ty auta jsou tak jak být nemají nevim jak to ošetřit abych zbytečně nědělal nějakej script tak se ptám vás.

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0

To samé to dělá na PFR, ale tam je to zas naopak port z motelu.

 

SAMP forum..

 

What Kye recommended to me was using a virtual world for the interior, so I did. On the spawn for Rappers (interior 5)/Grove (interior 2)/Drug Dealers (interior 12) on my server, I have made them spawn in virtual world 1.

And the in OnPlayerInteriorChange I have written this...

if((newinteriorid == 5 || newinteriorid == 2 || newinteriorid == 12) && GetPlayerVirtualWorld(playerid) == 0) SetPlayerVirtualWorld(playerid, 1);
if((oldinteriorid == 5 || oldinteriorid == 2 || oldinteriorid == 12) && newinteriorid == 0 && GetPlayerVirtualWorld(playerid) == 1) SetPlayerVirtualWorld(playerid, 0);

Kye says that he isn't sure whether this will be something that will be changed in 0.3b, so for now, this is the best solution going.

Link to comment
Share on other sites

  • 0

To samé to dělá na PFR, ale tam je to zas naopak port z motelu.

 

SAMP forum..

 

What Kye recommended to me was using a virtual world for the interior, so I did. On the spawn for Rappers (interior 5)/Grove (interior 2)/Drug Dealers (interior 12) on my server, I have made them spawn in virtual world 1.

 

And the in OnPlayerInteriorChange I have written this...

if((newinteriorid == 5 || newinteriorid == 2 || newinteriorid == 12) && GetPlayerVirtualWorld(playerid) == 0) SetPlayerVirtualWorld(playerid, 1);
if((oldinteriorid == 5 || oldinteriorid == 2 || oldinteriorid == 12) && newinteriorid == 0 && GetPlayerVirtualWorld(playerid) == 1) SetPlayerVirtualWorld(playerid, 0);

Kye says that he isn't sure whether this will be something that will be changed in 0.3b, so for now, this is the best solution going.

 

Děkuji za vysvětlení tohle mě nenapadlo ještě jednou díky.

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