Raised This Month: $ Target: $400
 0% 

Is it possible to optimize this code?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-05-2009 , 11:08   Re: Is it possible to optimize this code?
Reply With Quote #6

Or try this, i like it more
PHP Code:
#include <amxmodx>

new g_Commands[ ][ ] =
{
    
"/noriuvip",
    
"/viprules",
    
"/rules"
};

new 
g_Motds[ ][ ] =
{
    
"noriuvip.txt",
    
"viprules.txt",
    
"rules.txt"
};

new 
g_Messages[ ][ ] =
{
    
"Nori VIP?",
    
"VIP taisykles",
    
"Taisykles"
};

public 
plugin_init() 
{
    
register_clcmd"say""hook_say" );
    
register_clcmd"say_team""hook_say" );
}

public 
hook_sayid )
{
    new 
args32 ];
    
read_argsargscharsmaxargs ) );
    
remove_quotesargs );
    
    for( new 
0sizeof g_Commandsi++ )
    {
        if( 
equaliargsg_Commands] ) )
            
show_motdidg_Motds], g_Messages] );
    }
    
    return 
0;

__________________

anakin_cstrike is offline
 



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 23:11.


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