Waiting Time
#4

put a timer on ongamemodeinit
Код:
SetTimer("SideJob", 60000, true);
it should go every minute and lower the player variable by one, when it reaches 0 you can work again
Код:
forward SideJob();
public SideJob();
{
foreach(Player, i)
{
if(PlayerInfo[i][SideJob] >0)
{
PlayerInfo[i][SideJob]--;
if(PlayerInfo[i][SideJob] == 0)
{
SendClientMessage(i, -1, "You can work again");
}
}
}
return 1;
}
It should look something like this.
And when you finish work it puts the variable back at 60 or how many minutes you want
Reply


Messages In This Thread
Waiting Time - by AphexCCFC - 10.04.2014, 01:10
Re: Waiting Time - by Twizted - 10.04.2014, 07:43
Re: Waiting Time - by AphexCCFC - 10.04.2014, 07:56
Re: Waiting Time - by Danijel. - 10.04.2014, 09:57
Re: Waiting Time - by AphexCCFC - 10.04.2014, 10:14
Re: Waiting Time - by Danijel. - 10.04.2014, 10:15

Forum Jump:


Users browsing this thread: 1 Guest(s)