Timer for a command
#2

PHP код:
new Healstop//on top of script
CMD:heal(playeridparams[])//your command here
{
    if(
Healstop gettime())
    {
    
SendClientMessage(playerid, -,"You need to wait 1 minute before using /heal again");
    }
    else
    {
    
//your code here
    
Healstop gettime() + 60;
    }
    return 
1;

Reply


Messages In This Thread
Timer for a command - by Gotham - 13.10.2016, 14:12
Re: Timer for a command - by StrikerZ - 13.10.2016, 14:18
Re: Timer for a command - by Gotham - 13.10.2016, 14:26
Re: Timer for a command - by Hunud - 13.10.2016, 14:28
Re: Timer for a command - by StrikerZ - 13.10.2016, 14:29
Re: Timer for a command - by Dayrion - 13.10.2016, 14:47
Re: Timer for a command - by Gotham - 13.10.2016, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)