Posts: 163
Threads: 46
Joined: Jul 2012
Reputation:
0
how do i code an /shutdown command to restart my server what locks user accounts etc so they dont lose their money etc
Posts: 175
Threads: 34
Joined: Jan 2012
Reputation:
0
restart or shutdown?? u know they are different....
CMD:gmx(playerid, params[])
{
if(PlayerData[playerid][pAdmin] <= 5)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SavePlayerData(i);
}
SendClientMessageToAll(X11_DARK_RED, "An Admin commenced a server RESTART.");
SendRconCommand("gmx");
}
else
{
SendClientMessage(playerid, X11_RED, "You are not an admin level 5");
}
return 1;
}
if you want it shutdown do SendRconCommand("exit");