26.03.2016, 04:17
for example:
Not tested but try...
Код:
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");
}
}

