Help PLZ
#1

hi, I making my server rpg mode, and I have a problem with bank time, plz help me
Код:
forward TimeUpdate();
public TimeUpdate()
{
    worldTime++;
	worldTime%=24;
	SetWorldTime(worldTime);
	minutes=2;
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
       if(IsPlayerConnected(i))
		{
			if(ShitInfo[i][pBank] == 1)
			{
				if(worldTime==6 && minutes==0 && seconds == 1)
 				{
					GivePlayerECash(i,15);
					PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
					SendClientMessage(i,COLOR_GREEN, "(!) QUEST 1 COMPLETED REWARD: ");
					SendClientMessage(i,COLOR_YELLOW, "(!)  +15 ");
					return 1;
				}
			}
		}
	}
	return 1;
}
forward TimeUpdate2();
public TimeUpdate2()
{
	seconds++;
	seconds%=60;
	return 1;
}
just doesn't work
Reply


Messages In This Thread
Help PLZ - by mineralo - 05.11.2011, 18:34
Re: Help PLZ - by mineralo - 06.11.2011, 10:47
Re : Help PLZ - by Alvin007 - 06.11.2011, 12:45
Re: Re : Help PLZ - by mineralo - 06.11.2011, 12:59

Forum Jump:


Users browsing this thread: 1 Guest(s)