help with hourly payday - 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: help with hourly payday (
/showthread.php?tid=109033)
help with hourly payday -
mister_ic3 - 17.11.2009
i have scripted a basic timer based payday and it works just fine

but it needs the server to be on an hour before it pays out.
what i need to know is how to make it pay on the hour even if i have just turned the server on if thats possible
it is proply something really easy but i just can seem to work it out and every time i search for help on here i dont really get much that can help
sorry to be a pain and if someone has better luck in the search then can you please post a link and i will take it from there
CHEERS DUDE AND THANK YOU
Re: help with hourly payday -
darkrider366 - 17.11.2009
cool. To do that, you need to have some sort of...uhm...clock...well...A function could do...
Re: help with hourly payday -
Benne - 17.11.2009
If you're using levels then you could do some sort of a new random..
Like level 1 gets a random between 200 and 800.
Level 2 gets a random between 800 and 2000.
But don't ask me how to do it I can't, but I know that this could be the way to do it.
Re: help with hourly payday -
DeathOnaStick - 17.11.2009
If you want to do it like every hour, you can use "gettime", too. I guess that would be MUCH easier than creating a timer.
(btw: Do you know how to use "gettime"? It is made like this: gettime(hour, minute, second). hour, minute and second should be variables, where
the time gets stored.)
Just check, for example "hour" if its 0, 1, 2, .... etc... and it should work
Cheers.
Re: help with hourly payday -
mister_ic3 - 17.11.2009
thanks DeathOnaStick i will have a go at that for sure sounds like the way i need to be going
Quote:
If you're using levels then you could do some sort of a new random..
Like level 1 gets a random between 200 and 800.
Level 2 gets a random between 800 and 2000.
But don't ask me how to do it I can't, but I know that this could be the way to do it.
|
i do use levels and my payday is for level one you get $500 then at level two you get $1000 IE:-
basepay is $500
so it's basepay multiplyed by player level
level 0 $0.00 an hour
level 1 $500.00 an hour
level 2 $1000.00 an hour
and so on
it was done this way to encorage players to get more EXP and to keep the game moving so to speak