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;
}