Raised This Month: $ Target: $400
 0% 

Hook say_team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
B1GB0Y
Member
Join Date: Apr 2010
Location: Portugal
Old 06-16-2010 , 09:28   Hook say_team
Reply With Quote #1

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 ?
__________________
C O D I N G T H E F U T U R E

Coding Languages: VB.net & C#
Working on: Amxx

B1GB0Y is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-16-2010 , 09:34   Re: Hook say_team
Reply With Quote #2

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

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



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 14:52.


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