Posts: 111
Threads: 34
Joined: Jul 2009
Reputation:
0
How can i show "Objects Loaded" text when all objects loaded?
Posts: 459
Threads: 14
Joined: Jul 2008
Reputation:
0
printf("Objects Loaded");
*me shrugs
Posts: 113
Threads: 1
Joined: Jun 2008
Reputation:
0
Loading time depends on speed of CPU, they aren't loaded instantly because it takes time to calculate matrices(vectors and stuff like that) for every object. Projection, view matrix, etc. This type of loading is done by your graphic card & DirectX3D. Streamers are server-side so it needs time to transfer all packets AND do above.
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
The viewing matrices take time to load, but the litteral collision model is loaded faster than the player being placed there. Ever hit an invisible building while flying?
Posts: 548
Threads: 72
Joined: Nov 2009
Reputation:
0
So, to help this guy out... he wants a timer that freezes the player while objects are loading..
so:
under #include <a_samp>
forward Freezeobj(i);
On the commands, like teleports to places with objects put:
SetTimerEx("Freezeobj",5000,0,"d",playerid);
so that will freeze player for 5000 miliseconds
and at very end of your script put
public Freezeobj(i) TogglePlayerControllable(i,1);
Should work now