Display a timer +REP
#4

for example:


Код:
new Time;

CMD:gmx(playerid,params[])
{
new seconds;
if(!sscanf(params,"i",seconds))
{
SetTimer("Timer",1000,true);
Time = seconds;
return 1;
}

forward Timer();
public timer()
{
	if(Time > 0)
	{
	    new string[50];
     	format(string,128,"%i seconds to restart.",Time);
        GameTextForAll(string,1000,3);
        Time--;
	}
	else SendRconCommand("gmx");
}
}
Not tested but try...
Reply


Messages In This Thread
Display a timer +REP - by Amit1998 - 26.03.2016, 02:01
Re: Display a timer +REP - by Gammix - 26.03.2016, 02:09
Re: Display a timer +REP - by Amit1998 - 26.03.2016, 02:15
Respuesta: Display a timer +REP - by Thewin - 26.03.2016, 04:17
Re: Display a timer +REP - by Gammix - 26.03.2016, 04:20

Forum Jump:


Users browsing this thread: 1 Guest(s)