17.06.2013, 16:41
(
Последний раз редактировалось gurmani11; 12.09.2014 в 18:45.
)
.....................
new GMX_Count = 30;
COMMAND:Gmx(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You have to be an Admin.");
SetTimer("ServerGMX",1000,1);//2 seconds with no repeat
new str[128];
format(str, sizeof(str), "~r~Server is restarting - ~y~Please Wait.~n~~r~%d~b~ seconds left.",GMX_Count);
GameTextForAll(str,30000,3);
return 1;
}
forward ServerGMX();
public ServerGMX()
{
GMX_Count--;
if(GMX_Count <= 0)
{
GameTextForAll("~r~Server is now restarting!",30000,3);
return SendRconCommand("gmx");
}
new str[128];
format(str, sizeof(str), "~r~Server is restarting - ~y~Please Wait.~n~~r~%d~b~ seconds left.",GMX_Count);
GameTextForAll(str,30000,3);
return 1;
}