Help me with payday
#1

well guys, i want to do a 30 min interval payday, like 12:00 12:30 13:00 etc...
some1 help me please!
Reply
#2

Setup a timer on repeat.
gettime each second, check for minute == 30 || minute == 0.
Give player payday

Код:
OnGameModeInit() {
    SetTimer("PaydayTimer", 1000, true);
}

PaydayTimer() {
    new hour, minute, second;
    gettime(hour, minute, second);
    if(minute == 0 || minute == 30) {
        GivePlayerMoney(playerid, 3000);
        // Or whatever.
    }
}
Reply
#3

Thanks brooo!
Reply


Forum Jump:


Users browsing this thread: