Have A Question About Reset Something
#2

PHP код:
new gifttimer[MAX_PLAYERS]; //on top of script 
in /gift command.
PHP код:
CMD:gift(playerid,params)
{
//code
if(gifttimer[playerid] > gettime()) return SendClientMessage(playerid,COLOR_YELLOW,"You need to wait for 1 day to use this command again");
gifttimer[playerid] = gettime()+86400;
return 
1;

This will reset the /gift after 1 full day.
Reply


Messages In This Thread
Have A Question About Reset Something - by TYDS - 21.11.2016, 11:23
Re: Have A Question About Reset Something - by StrikerZ - 21.11.2016, 12:11
Re: Have A Question About Reset Something - by TYDS - 21.11.2016, 12:14
Re: Have A Question About Reset Something - by StrikerZ - 21.11.2016, 12:15
Re: Have A Question About Reset Something - by TYDS - 21.11.2016, 12:16
Re: Have A Question About Reset Something - by StrikerZ - 21.11.2016, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)