B1GB0Y
06-16-2010, 09:28
Hi
I have this code to say:
public Hook_Say(id, level, cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_CONTINUE;
new said[128];
read_args(said, sizeof(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(said, sizeof(said)-1, ".pass ", "")
set_pcvar_string(c_pass, said)
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 ? :|
I have this code to say:
public Hook_Say(id, level, cid)
{
if (!cmd_access(id,level,cid,2))
return PLUGIN_CONTINUE;
new said[128];
read_args(said, sizeof(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(said, sizeof(said)-1, ".pass ", "")
set_pcvar_string(c_pass, said)
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 ? :|