How to delete a gamemode.amx file?
#1

I am using this to prevent someone to use the script on another IP that is not specified.

pawn Код:
public OnGameModeInit()
{
    new
        ip[16];
    GetServerVarAsString("bind", ip, sizeof (ip));
    if (!ip[0] || strcmp(ip, "192.168.0.127"))
    {
        for (;;)
        {
            printf("Failed to  load the script!");
        }
    }
}
Now,what I want it to do is,when it is printing it failed to load the script,it will also delete the GameMode.amx file on /gamemodes folder in server directory,I have no idea how to do this. I think it is possible for it to be done as a .dll (writing del root function) but that is for windows servers and I don't know how can I start a plugin via the script.

I want this because it will prevent anyone to use the script if it is in the wrong IP and it will also make the script unusable again.
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: 4 Guest(s)