SA-MP Forums Archive
Help, Please? (Rep+) - 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)
+--- Thread: Help, Please? (Rep+) (/showthread.php?tid=300152)



Help, Please? (Rep+) - seanny - 29.11.2011

Hello, How can I make it so that if a player enters an interior with CreateDynamicObject without falling before objects stream, Example: Player1 enters All Saints and falls through the objects because they never loaded in time, How can I make it so that I can avoid this?

Sorry if I did not explain too well.


Re: Help, Please? (Rep+) - -Rebel Son- - 29.11.2011

Freeze them using TogglePlayerControllable and with a timer, then when the timer runs out, they will unfreeze and the object would have had plenty of time to load,

example,

player enters

TogglePlayerControllable(playerid, 0);
SetTimer (customfunction, 60000, 1);


Re: Help, Please? (Rep+) - seanny - 29.11.2011

Thanks, Rep+'ed!


Re: Help, Please? (Rep+) - -Rebel Son- - 29.11.2011

Np! further help pm me!


Re: Help, Please? (Rep+) - MP2 - 29.11.2011

Use Streamer_UpdateEx before the SetPlayerPos line.