[Include] FoxPayDay v4
#1



Foreword
FoxPayDay is an easy PayDay-Include. v1 and v2 were FilterScripts, since v3 it's an Include and since v4 the PayDay-Times are saved under scriptfiles/FoxPayDay/.
Important: Create a Folder named 'FoxPayDay' in the 'scriptfiles'-Folder, if you don't do that, your Server will crash.
FoxPayDay
This is an Include, where all Players have their own PayDay-Times.
Unlike GodFather.
There's a definition in the Include, where you can change the PayDayTimes.
Standartly, all Players have PayDay if they Played 60 Minutes.
There are also a definition where you can change the Save Directory of the PayDay-Times.

Functions

StartPayDayTime(playerid)
Starts the PayDayTime for playerid.
You can use it under OnPlayerConnect, so if the Player has played 60 Minutes after Connect, he'll become PayDay.
You MUST make your own PayDay, with the OnPlayerPayDay(playerid) Callback!

StopPayDayTime(playerid)
Stops the PayDay-Time from a Player.
If you used "StartPayDayTime" under OnPlayerConnect, you can do this under OnPlayerDisconnect!

SetPlayerPayDayTime(playerid, newtime)
Sets the PayDayTime from playerid to 'newtime'.

GetPlayerPayDayTime(playerid)
Returns the PayDay-Time of playerid. Example usage:: if(GetPlayerPayDayTime(playerid) == 24)

Callbacks
OnPlayerPayDay(playerid)
You can enter here what should happen if the Player has PayDay.
This is like the "
PayDay()" Callback in GodFather

Download
Show 'FoxPayDay_v4.inc' - pastebin.com

Download FoxPayDay_v4.rar - SendSpace
Download FoxPayDay_v4.rar - RapidShare

Close
Have Fun !
Again: Don't forget to create the Folder 'FoxPayDay' in the 'scriptfiles'-Folder.

\_________________________________________________ ______________________________________/
Reply
#2

nice lol nice work and nice picture too!
Reply
#3

Oh this is nice, but does it mean that everyone has his own timer? so with 500 people there are 500 timers running?
Reply
#4

Is Nice for begginers, you could put some function for setting the payday for all.
Reply
#5

@cycnic://
maybe...

@playbox12://
Yeah.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)