04.01.2009, 12:26
Quote:
|
Originally Posted by -=[Serbish
=- ]
I made a nice simple system for you ( took 2 mins of my life jk ).Код:
new counter=10;
forward CountDown(playerid);
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/countdown", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SetTimer("CountDown",1000,1);
return 1;
}
}
return 0;
}
public CountDown(playerid)
{
new string[256];
counter -= 1;
format(string,sizeof(string),"Server Restarts in %d seconds!", counter);
GameTextForAll(string,1000,3);
if(counter == 0)
{
Kick(playerid);
}
}
Код:
Kick(playerid); |


jk ).