PayDay 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: PayDay help. (
/showthread.php?tid=261072)
PayDay help. -
ricardo178 - 11.06.2011
Hello guys.
Can you help me making a payday system?
I have no idea about how to set it to do the things each hour...
Well, i will need to use a timmer.
I don't know how to use it, and how to set it for the real time hours/minutes.
Thank you in advance... I don't need an exactly code, i need to know how to do it.
Re: PayDay help. -
bartje01 - 12.06.2011
Hmm
Top:
pawn Код:
new Pay[32];
forward Payday(playerid);
At your login or connect:
pawn Код:
Pay[playerid] = SetTimerEx("Payday",3600000,true,"i",playerid);
pawn Код:
public Payday(playerid)
{
SendClientMessage(playerid,COLOR_WHITE,"Payday!!!");
}
Not tested
Re: PayDay help. -
Benjo - 12.06.2011
Just change
pawn Код:
public SaveStats(playerid)
{
SendClientMessage(playerid,COLOR_WHITE,"Payday!!!");
}
to
pawn Код:
public Payday(playerid)
{
SendClientMessage(playerid,COLOR_WHITE,"Payday!!!");
}
...and you should be ready to go!
Re: PayDay help. -
bartje01 - 12.06.2011
Quote:
Originally Posted by Benjo
Just change
pawn Код:
public SaveStats(playerid) { SendClientMessage(playerid,COLOR_WHITE,"Payday!!!"); }
to
pawn Код:
public Payday(playerid) { SendClientMessage(playerid,COLOR_WHITE,"Payday!!!"); }
...and you should be ready to go!
|
Lol yes indeed. I took this from my script
Re: PayDay help. -
ricardo178 - 12.06.2011
Thank you very much. I didn't test it yes, but i think it will work, and if it doesn't, i ix it myself.