16.03.2010, 13:54
I host server and evrything work but after 2-3 houre sometime maximum 1 day server restart and then i must start again?
can someone help me whit this problem?
can someone help me whit this problem?
SendRconCommand("gmx");
SendRconCommand("exit");
|
Originally Posted by [BEP
GeoPilot ]
See if your GameMode have something like this: Код:
SendRconCommand("gmx");
Код:
SendRconCommand("exit");
|
if (strcmp("/Restart", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid) == 0) return SendClientMessage(playerid, 0xAA3333AA, "you are not Admin!");
GameModeExit();
return 1;
}
//----------------------------------[GMX]-----------------------------------------------
if(strcmp(cmd, "/gmx", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
OnPlayerUpdate(playerid);
GameModeExit();
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}