SA-MP Forums Archive
People/Cars faliing under objects - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: People/Cars faliing under objects (/showthread.php?tid=255116)



People/Cars faliing under objects - Edga - 14.05.2011

ok, so i have this problem that cars or people fall under my objects and i was wondering you guys can help me with this

Pictures:

This is where my helicopter fell under an object...


This is my jail but as soon as someone puts you in it you fall under the object...




Some more Info:

-I use https://sampforum.blast.hk/showthread.php?tid=102865 Streamer i've also used xStreamer and 2 others (Cant remember them) but the cars/people still fall under my objects :/
-I have around 4700~ objects and 280~ cars.



Please if you know what the problem is post a comment thanx.


Re: People/Cars faliing under objects - V1P3R - 14.05.2011

Thats because the little lagg i think you always have to place it little bit above
because he have to load everything


Re: People/Cars faliing under objects - Raimis_R - 14.05.2011

Your problem,Objects loading to slow.
Use Streamer_Update(playerid);


Re: People/Cars faliing under objects - Edga - 14.05.2011

i dont like that idea becuz sometimes people get stuck at the object above them :/


Re: People/Cars faliing under objects - Gh0sT_ - 14.05.2011

Set that heli Z coordinate(when you are creating it) +5

Example:

CreateVehicle( heli model, x, y, z + 5, color, color2, respawn_delay );

And for the player:

When you putting anyone in jail, freeze the player for ~3 seconds, set a timer with 3000 interval and unfreeze it when the timer gets called.

Example:

(Putting player in jail)
TogglePlayerControllable(playerid, false);
SetTimerEx("Unfreeze", 3000, false, "d", playerid );

(Timer)
forward Unfreeze(playerid); public Unfreeze(playerid) return TogglePlayerControllable(playerid, true);


Re: People/Cars faliing under objects - Edga - 14.05.2011

Quote:
Originally Posted by Raimis_R
Посмотреть сообщение
Your problem,Objects loading to slow.
Use Streamer_Update(playerid);
Can you explain a bit more about Streamer_Update(playerid); please ?


Re: People/Cars faliing under objects - Raimis_R - 14.05.2011

Quote:
Originally Posted by Edga
Посмотреть сообщение
Can you explain a bit more about Streamer_Update(playerid); please ?
You can read about it and more in this plugin thread https://sampforum.blast.hk/showthread.php?tid=102865


Re: People/Cars faliing under objects - Gh0sT_ - 14.05.2011

Quote:
Originally Posted by Edga
Посмотреть сообщение
Can you explain a bit more about Streamer_Update(playerid); please ?
Did you tried my way?


Re: People/Cars faliing under objects - Edga - 14.05.2011

Quote:
Originally Posted by Gh0sT_
Посмотреть сообщение
Did you tried my way?
Ill try Raimis way first becuz i think it updates the objects straight away.
If it doesnt work ill try your way becuz your way is good to but it might be glitchy cuz y+5 might make the car get stuck in the object above it :/ but thanx you really helped me !