Raised This Month: $ Target: $400
 0% 

Can someone edit this small plugin ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 06-19-2015 , 01:43   Can someone edit this small plugin ?
Reply With Quote #1

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; 
}  
Awesome_man is offline
 


Thread Tools
Display Modes

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 20:19.


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