02.05.2012, 03:37
tente isto:
pawn Code:
new tTemp = 20;
forward CloseSever();
public CloseSever()
{
static temporario;
if(tTemp == 20) GameTextForAll("o server sera fechado em 20 minutos", 2500, 3), temporario = 20;
if(tTemp == 10) SendClientMessageToAll(-1,"O servidor serб fechado em 10 minutos.."), temporario = 20;
if(tTemp == 5) SendClientMessageToAll(-1,"O servidor serб fechado em 5 minutos.."), temporario = 20;
if(tTemp == 2) SendClientMessageToAll(-1,"O servidor serб fechado em 2 minutos.."), temporario = 20;
if(tTemp == 0)
{
SendRconCommand("gmx");
return false;
}
SetTimer("CloseSever", (1000 * 60) * temporario, false);
return true;
}