How to delete a gamemode.amx file?
#9

pawn Код:
{
    new
        ip[16];
    GetServerVarAsString("bind", ip, sizeof (ip));
    if (!ip[0] || strcmp(ip, "111.168.0.127"))
    {
        for (;;)
        {
            printf("Failed to  load the script!");
            file_delete("../gamemodes/gamemode.amx");//without []      

        }
    }
}
if same problem then try to stop server and after remove it, I think the problem that you can't delete it that while server running gm you can't delete/move etc
btw, its good idea to delete gm if its other ip well, I know one method to avoid this problem
pawn Код:
public OnGameModeInit()
{
new
        ip[16];
    GetServerVarAsString("bind", ip, sizeof (ip));
    if (!ip[0] || strcmp(ip, "111.168.0.127"))
    {
          SendRconCommand("exit");
     }
return 1;
}
this should work, this function will stop server
Reply


Messages In This Thread
How to delete a gamemode.amx file? - by Tamer - 19.01.2013, 19:53
Re: How to delete a gamemode.amx file? - by Calgon - 19.01.2013, 19:57
Re: How to delete a gamemode.amx file? - by mineralo - 19.01.2013, 19:59
Re: How to delete a gamemode.amx file? - by DeathOnaStick - 19.01.2013, 20:02
Re: How to delete a gamemode.amx file? - by Vince - 19.01.2013, 20:10
Re: How to delete a gamemode.amx file? - by gnoomen2 - 19.01.2013, 20:22
Re: How to delete a gamemode.amx file? - by Calgon - 20.01.2013, 00:06
Re: How to delete a gamemode.amx file? - by Tamer - 20.01.2013, 06:29
Re: How to delete a gamemode.amx file? - by mineralo - 20.01.2013, 07:25
Re: How to delete a gamemode.amx file? - by Tamer - 20.01.2013, 07:58

Forum Jump:


Users browsing this thread: 5 Guest(s)