Pay Player By Time? - 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: Pay Player By Time? (
/showthread.php?tid=77289)
Pay Player By Time? -
Aoi_Rikuto - 10.05.2009
I am making a turf system for factions on my RP server. This is really simple but I don't know how to do it. I want it to pay the faction bank or the leader. I would like it to play $100 per 5 minutes. How would I do this?
Re: Pay Player By Time? -
CJ101 - 10.05.2009
Код:
forward PayTimer(playerid); //at top of script
SetTimer("PayTimer",300000,true); //this goes under ongamemodeinit-
public PayTimer(playerid)
{
GivePlayerMoney(playerid,100);
}