Happy hour - 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)
+--- Thread: Happy hour (
/showthread.php?tid=620175)
Happy hour -
1fret - 27.10.2016
Ok i made a happy hour scrrpt i want it to pay only the players that has been playing for a certain amount of time example 20 minutes. How would i go about making this code that each minute would count and if the player wasnt online for 20mins he/she doesnt receive any happy hour payout.....
Re: Happy hour - iLearner - 27.10.2016
new seconds = NetStats_GetConnectedTime(playerid) / 1000;
new minutes = seconds / 60;
Variable minutes contains the minutes he's been connected for.