[Ajuda] SetTimerEx
#9

PHP код:
new timerKill[MAX_PLAYERS];
CMD:kill(playerid)
{
    if(
gettime() - timerKill[playerid] > 20) {
        
timerKill[playerid] = gettime();
        
SetPlayerHealth(playerid0);
    }
    else {
        static 
str[55];
        
format(strsizeof str"Aguarde %d segundos para usar o comando novamente!"gettime() - timerKill[playerid] - 20);
        
SendClientMessage(playerid, -1str);
    }
    return 
true;

Reply


Messages In This Thread
SetTimerEx - by Luiiiz - 28.01.2017, 23:06
Re: SetTimerEx - by JonathanFeitosa - 28.01.2017, 23:09
Re: SetTimerEx - by Luiiiz - 28.01.2017, 23:14
Re: SetTimerEx - by Luiiiz - 28.01.2017, 23:17
Re: SetTimerEx - by Whoo - 28.01.2017, 23:22
Re: SetTimerEx - by GuiKommander - 29.01.2017, 03:05
Re: SetTimerEx - by Luiiiz - 29.01.2017, 17:30
Re: SetTimerEx - by HoodScript - 29.01.2017, 21:22
Re: SetTimerEx - by AuhMaru - 30.01.2017, 12:03

Forum Jump:


Users browsing this thread: 1 Guest(s)