Help with PayDay .
#1

Hi can anyone give me link me link to tutorial how make payday system.
Or take me 2 codes:
how i can check ore player loged in more than 30 minutes.
and somethink happens when in server is 12.00, 13.00 14.00 15.00 hour etc...

sorry for my english
Reply
#2

// to check if a player played more then 30mins you could:
// add a variable and set it to 0
new PlayerOnline30Mins[MAX_PLAYERS] = 0;
// Then add a timer OnPlayerConnect for playerid. ( i'm not that good with timers. )

SetTimerEx(....);

// Then in its function you just do the variable into 1
PlayerOnline30Mins[playerid] = 1;

// When checking if a player spend 30mins or more.
if(PlayerOnline30Mins[playerid] == 1)
{
// Do your stuff here for players that were active more then 30mins.
}
Reply
#3

And under OnGameModeExit. Kill timer?
Oh ok thank you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)