Raised This Month: $ Target: $400
 0% 

[HELP] Ip lock a plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 11-14-2014 , 04:24   [HELP] Ip lock a plugin.
Reply With Quote #1

I want to IP lock this plugin so that the plugin runs only on a specific IP else set_fail_state.

Code:
#include <amxmodx>
#include <colorchat>

new const gBlockTexts[][] = {
    "",
    "",
    "",
    "",
    "#",
    "%"
};

public plugin_init() 
{
    register_plugin("Block Special Symbols", "1.0", "[~]~[N]o.Ob [K]iLl3r~[~]");
    
    register_clcmd("say", "CmdSay");
    register_clcmd("say_team", "CmdSay");

}

public CmdSay(id) 
{
    new args[192];
    read_args(args, charsmax(args));
    remove_quotes(args);
    
    for(new i = 0; i < sizeof(gBlockTexts); i++) {
        if(containi(args, gBlockTexts[i]) != -1 ) {
        ColorChat(id, NORMAL, "Using ^3Special Symbols ^1is not ^4allowed")
        return PLUGIN_HANDLED;
        }
    }
    return PLUGIN_CONTINUE;
}
Akshat is offline
Send a message via Skype™ to Akshat
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 11-14-2014 , 04:32   Re: [HELP] Ip lock a plugin.
Reply With Quote #2

Why would you want to do it? People can still find this plugin since it is somewhere else in this forum
__________________
Jhob94 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode