SA-MP Forums Archive
odd car pos - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: odd car pos (/showthread.php?tid=290802)



odd car pos - a_big - 17.10.2011

my cars are placed in the wrong place even though i placed them were i wanted them to be
during mapping:

in-game:

they respawn in the right place but only on its first spawn its in the wrong place


Re: odd car pos - a_big - 17.10.2011

it happens on all servers btw


Re: odd car pos - Emmet_ - 17.10.2011

Old SA:MP bug and confirmed. Happens sometimes when you exit from CJ's closet from the house. You could try this code:

pawn Code:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    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);
    return 1;
}



Re: odd car pos - kurta999 - 17.10.2011

Quote:
Originally Posted by Kalcor
View Post
I think this is a rare SA-MP server streaming problem caused by the fact that the interior is right above Grove Street. The vehicles are streamed in while you are in the interior but the cols aren't loaded so they fall through the ground.

A fix could be scripted to change the player virtual world to non-0 when you are in an interior.
char

E: You're faster, sorry.


Re: odd car pos - a_big - 17.10.2011

i'll just make cj spawn outside the johnson house instead