Need help with a timering
#2

pawn Код:
static stock
    g_LastReward[MAX_PLAYERS]
;

CMD:reward(playerid, params[])
{
    if (gettime() < g_LastReward[playerid])
        return SendClientMessage(playerid, -1, "You must wait 1 hour before your next reward.");

    // Your code here...
    g_LastReward[playerid] = gettime() + 3600;
    return 1;
}
Reply


Messages In This Thread
Need help with a timering - by Acres - 03.01.2014, 20:00
Re: Need help with a timering - by Emmet_ - 03.01.2014, 20:02
Re: Need help with a timering - by Acres - 03.01.2014, 20:10
Re: Need help with a timering - by xo - 03.01.2014, 20:28
Re: Need help with a timering - by Acres - 03.01.2014, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)