People/Cars faliing under objects
#1

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.
Reply
#2

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

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

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

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);
Reply
#6

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 ?
Reply
#7

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
Reply
#8

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

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 !
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)