AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hook say_team (https://forums.alliedmods.net/showthread.php?t=129737)

B1GB0Y 06-16-2010 09:28

Hook say_team
 
Hi

I have this code to say:

PHP Code:

public Hook_Say(idlevelcid)
{
    if (!
cmd_access(id,level,cid,2))
        return 
PLUGIN_CONTINUE;
    
    new 
said[128];
    
read_args(saidsizeof(said)-1)
    
remove_quotes(said)
    
    
    if(
equali(said".nopass"))
    {
        
set_pcvar_string(c_pass"")
        
client_print(0,print_chat,"The server has no longer password")
    }
    
    else if(
equali(said".pass",5))
    {
        
replace(saidsizeof(said)-1".pass """)
        
set_pcvar_string(c_passsaid)
        
client_print(0,print_chat,"The password of the server was been changed to: %s"said)
    }
    
    return 
PLUGIN_CONTINUE;


But i want this code to say_team too !

Can anyone help me please ? :|

drekes 06-16-2010 09:34

Re: Hook say_team
 
Code:

register_clcmd("say_team", "Hook_Say");
Did you try that?


All times are GMT -4. The time now is 14:52.

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