12.06.2010, 14:48
Thanks for the help, I'm starting to understand this now. It doesn't work the way I want it to, though. Is it possible to use the functions mentioned above but instead I SendRconCommand("exit"); and with a timer I start the server again? I tried doing it but it failed hard. I'm almost certain this should work, seen it on numerous servers before.
pawn Code:
forward reloadgm();
----
if(strcmp(cmd, "/gmx", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
SendRconCommand("exit");
SetTimer("reloadgm", 5000, 0);
}
bla bla bla
-----
public reloadgm()
{
SendRconCommand("gmx");
return 1;
}