Load filterscript on Gamemode restart
#1

Hi. I wonder if it's possible to load a certain filterscript when I restart my gamemode in-game with a command like this;
pawn Code:
if(strcmp(cmd, "/gmx", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
            if(PlayerInfo[playerid][pAdmin] >= 5)
            {
                GameModeRestart();
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command");
            }
        }
        return 1;
    }
And if that doesn't work, is it possible to make the gamemode quit by itself (the same way when you type "exit" in samp-server.exe) and then after a short time let it start again?

Thanks.
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: 1 Guest(s)