Time Bug [ Help ]
#1

Код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)