16.05.2010, 10:28
Hi I Have question ..
is this possible to restart server with command like /restart
if it is please reply
is this possible to restart server with command like /restart

if it is please reply


if((!strcmp(cmdtext,"/restart",true,8) && IsPlayerAdmin(playerid))
{
GameTextForAll("~g~Server Restarting!", 2000, 5);
SendRconCommand("gmx");
return 1;
}
|
Originally Posted by DJDhan
You might wana use the following
![]() Код:
if(!strcmp(cmdtext,"/restart",true,8)
{
GameTextForAll("~g~Server Restarting!", 2000, 5);
SendRconCommand("gmx");
return 1;
}
|
if(!strcmp(cmdtext,"/restart",true,8)
{
GameModeExit();
return 1;
}
|
Originally Posted by juice.j
... which wouldn't restart the server.
|
