payday system problem !
#7

hmm try to change this
Код:
forward BankTime();
public BankTime()
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
	if(IsPlayerInArea(i,2085.6704,2059.4272,11.0579,92.7368))
		{
		new hours;
		new minutes;
		GetPlayerTime(i, hours, minutes);
  	    if(hours == 6.00 && minutes == 0.00)
        {
			PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
			GivePlayerMoney(i, 7500);
			SendClientMessage(i, 0x12900BBF, "||| 6:00 | BANK TIME: |||");
			SendClientMessage(i, 0xFFFF00AA, "YOU RECEIVE +50 $");
			return 1;
			}
		}
  }
  return 1;
}
to this:

Код:
forward BankTime();
public BankTime()
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
	    new hours,new minutes;
	    GetPlayerTime(i, hours, minutes);
  	    if(hours == 6.00 && minutes == 0.00)
            {
	    PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
	    GivePlayerMoney(i, 7500);
	    SendClientMessage(i, 0x12900BBF, "||| 6:00 | BANK TIME: |||");
	    SendClientMessage(i, 0xFFFF00AA, "YOU RECEIVE +50 $");
	    return 1;
	    }
  }
  return 1;
}
I hope it will work now.
Reply


Messages In This Thread
payday system problem ! - by Joe Vagos - 25.01.2014, 14:46
Re: payday system problem ! - by Joe Vagos - 26.01.2014, 14:10
Re: payday system problem ! - by [TMS]Legena - 26.01.2014, 14:35
Re: payday system problem ! - by Joe Vagos - 26.01.2014, 15:07
Respuesta: payday system problem ! - by Stront - 26.01.2014, 15:13
Re: payday system problem ! - by Joe Vagos - 26.01.2014, 15:17
Re: payday system problem ! - by [TMS]Legena - 26.01.2014, 15:17
Re: payday system problem ! - by Joe Vagos - 26.01.2014, 15:28
Re: payday system problem ! - by [TMS]Legena - 26.01.2014, 15:39
Re: payday system problem ! - by Joe Vagos - 26.01.2014, 15:51

Forum Jump:


Users browsing this thread: 2 Guest(s)