SA-MP Forums Archive
streamer help please - 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: streamer help please (/showthread.php?tid=218766)



streamer help please - darkknight123 - 31.01.2011

I'm useing Incognito's streamer for my server when i run it in windows the objects appear just fine but when i upload it to serverffs and try to run the server none of the objects show but it loads the plugin just fine whats wrong please help.


Re: streamer help please - KotoK - 31.01.2011

I guess that all depends from internet speed. Reduce objects quantity or make automatic freeze - unfreeze option for spawns.


Re: streamer help please - darkknight123 - 31.01.2011

How would I do that?


Re: streamer help please - KotoK - 31.01.2011

Make automatic freeze - unfreeze timer with your selected time interval and than just put it into all spawn functions.


Re: streamer help please - darkknight123 - 31.01.2011

Can you please provide a tutorial im kinda a noob sorry


Re: streamer help please - KotoK - 31.01.2011

So this lines bears the responsibility for players freezing. Just put them in spawn functions like in onplayerspawn public.

Код:
TogglePlayerControllable(playerid, 0);
SetTimerEx("Spawn", 3000, false, "i", playerid);
And this lines bears the responsibility for players unfreezing. Put these script lines at the end of your gamemode.

Код:
forward Spawn(playerid);
public Spawn(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	    TogglePlayerControllable(playerid, 1);
	}
	return 1;
}