28.08.2015, 09:31
How to create command for server restart, help me, pls 





CMD:gmx(playerid, params[])
{
OnGameModeExit();
return 1;
}
CMD:gmx(platerid, params[])
//you can use if(IsPlayerAdmin(playerid)) here
{
SendRconCommand("gmx");
return 1;
}
|
The irony is that there's an actual native for that: https://sampwiki.blast.hk/wiki/GameModeExit
|