AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Can someone edit this small plugin ? (https://forums.alliedmods.net/showthread.php?t=264566)

Awesome_man 06-19-2015 01:43

Can someone edit this small plugin ?
 
Can someone please make this to allow 2 digit number eg player can type in chat any two digit number eg : 11 21 32 99 76 etc but not more than 2 digit allowed and it should show * instead of number then

Code:

#include <amxmodx>

new const gBlockTexts[][] = {
   
"1",
   
"2",
   
"3",
   
"4",
   
"5",
   
"6",
   
"7",
   
"8",
   
"9",
   
"0"
};

public
plugin_init() {
   
register_plugin("Block Numbers !", "1.0", "Th3");
   
   
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 )
            return
PLUGIN_HANDLED;
        }
    }
   
    return
PLUGIN_CONTINUE;



All times are GMT -4. The time now is 20:19.

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