Command Timer
#1

How can I make a 24Hour timer for a command. I want something like this:
If player quit the game and enter again after 24Hour , he can use the command.
Sorry for bad english.
Reply
#2

You may use a variable for time like this one
pawn Код:
if(PlayerInfo[playerid][pTimeStayed] > 0)
            {
                SendClientMessageEx(playerid, COLOR_GRAD2, "You must play at least 24 hours to be able to BLAH BLAH BLAH");
                return 1;
            }
by using the enum playerinfo and the variable TimeStayed
N.B This is only an example !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)