View Single Post
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 03-13-2019 , 16:02   Re: [Edit] register_clcmd
Reply With Quote #9

Quote:
Originally Posted by VenomMix View Post
Before or after register_clcmd?
Give me an example with a random command.
PHP Code:
public plugin_init() {
    
    
register_saycmd("mix",             "ShowWarMenu",     ADMIN_ACCESS);
    
register_saycmd("alegeri",         "Alegeri",         ADMIN_ACCESS);
    
register_saycmd("lame",         "Lame",         ADMIN_ACCESS);
    
register_saycmd("warm",         "Warm",         ADMIN_ACCESS);
    
register_saycmd("live",         "Live",         ADMIN_ACCESS);
    
register_saycmd("rr",             "Rr",             ADMIN_ACCESS)
}



stock register_saycmd(const szSayCmd[], const szFunc[], iFlags = -1, const szInfo[] = ""FlagManager = -1bool:bInfoML false)
{
    new const 
szPrefix[][] = { "say /""say_team /""say .""say_team .""say !""say_team !" };

    for(new 
iszTemp[32]; sizeof(szPrefix); i++)
    {
        
formatex(szTempcharsmax(szTemp), "%s%s"szPrefix[i], szSayCmd);
        
register_clcmd(szTempszFunciFlagsszInfoFlagManagerbInfoML);
    }

@eat1k

Thanks for the stock.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr