Played Time
#1

How can i make that every 20 minutes played time player get some reward?
Reply
#2

You have to set player timer (SetTimerEx) for 20 minutes and than create
forward + public and there you can add your reward!
Reply
#3

Something like this is will do what you want. You can declare the timer in OnPlayerConnect instead of OnPlayerSpawn, that's up to you.

pawn Код:
public OnPlayerSpawn(playerid)
{
    SetTimer("reward", 1200000, 1); // Creates a timer called "reward", repeated every 20 minutes (1200000ms).
    return 1;
}

forward reward();
public reward()
{
    //Rewards
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)