Load filterscript on Gamemode restart
#7

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;
}

Reply


Messages In This Thread
Load filterscript on Gamemode restart - by Galcio - 12.06.2010, 10:19
Re: Load filterscript on Gamemode restart - by Zimon95 - 12.06.2010, 10:22
Re: Load filterscript on Gamemode restart - by TheInnocentOne - 12.06.2010, 10:45
Re: Load filterscript on Gamemode restart - by Galcio - 12.06.2010, 13:43
Re: Load filterscript on Gamemode restart - by DJDhan - 12.06.2010, 13:46
Re: Load filterscript on Gamemode restart - by DJDhan - 12.06.2010, 14:22
Re: Load filterscript on Gamemode restart - by Galcio - 12.06.2010, 14:48
Re: Load filterscript on Gamemode restart - by DJDhan - 12.06.2010, 14:51
Re: Load filterscript on Gamemode restart - by KillermanGR - 10.02.2011, 18:10

Forum Jump:


Users browsing this thread: 5 Guest(s)