Thread: Plugin Protect.
View Single Post
Sdg
BANNED
Join Date: Mar 2014
Old 03-10-2015 , 07:57   Re: Plugin Protect.
Reply With Quote #20

I'm currently using this but me strip mistake, does not work.
Thanks to Brrdy by the code.

Code:
#include <sourcemod>

public Plugin:myinfo =   
{ 
    name = "TEST", 
    author = "Brrdy", 
    description = "TEST", 
    version = "1.00", 
    url = ""
};

public OnPluginStart()
{
        new Handle:enabled = FindConVar("net_public_adr");
        decl String:convar[64];
        GetConVarString(enabled, convar, sizeof(convar));
        if(StrEqual(convar, "1.1.1.1:27016"))
        {
                ServerCommand("say yes");
        }
        else
        {
                ServerCommand("exit");
        }
}
Sdg is offline