SA-MP Forums Archive
Time Bug [ Help ] - 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: Time Bug [ Help ] (/showthread.php?tid=494737)



Time Bug [ Help ] - Clad - 14.02.2014

Код:
forward TimeUpdate();
public TimeUpdate()
{
	worldTime++;
	worldTime%=24;
	SetWorldTime(worldTime);
	minuto=0;
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
       if(IsPlayerConnected(i))
		{
			if(ShitInfo[i][pBank] == 1)
			{
				if(worldTime==6 && minuto==0 && seconds == 1)
 				{
					GivePlayerCash(i,15);
					PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
					SendClientMessage(i,COLOR_YELLOW, "[ ! ] You receive +15 Dollars");
					return 1;
				}
			}
		}
	}
	return 1;
}
I don't know why the time speed sometimes