remélem jó:
if(strcmp(cmd, \"/resi\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid))
{
GameTextForAll(\"~w~szerver restart\",2000,1);
SetTimer(\"Gor10\", 1000, 0);
SetTimer(\"Gor9\", 2000, 0);
SetTimer(\"Gor8\", 3000, 0);
SetTimer(\"Gor7\", 4000, 0);
SetTimer(\"Gor6\", 5000, 0);
SetTimer(\"Gor5\", 6000, 0);
SetTimer(\"Gor4\", 7000, 0);
SetTimer(\"Gor3\", 8000, 0);
SetTimer(\"Gor2\", 9000, 0);
SetTimer(\"Gor1\", 10000, 0);
SetTimer(\"ServerReset\", 11000,0);
new nev[32];
GetPlayerName(playerid, nev, sizeof(nev));
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s restartolta a szervert.\",y,m,d,h,mi,s,nev);
LoOoG(stringx);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, \"Nem vagy Rcon admin!\");
}
}
return 1;
}