Happy hour
#1

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.....
Reply
#2

new seconds = NetStats_GetConnectedTime(playerid) / 1000;
new minutes = seconds / 60;

Variable minutes contains the minutes he's been connected for.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)