Raised This Month: $ Target: $400
 0% 

someone leaves the code say?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 12-26-2009 , 04:19   Re: someone leaves the code say?
Reply With Quote #8

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "SAY"
#define VERSION "1.0"
#define AUTHOR "ProIcons"


public plugin_init() {
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
register_clcmd("amx_say","amx_say")
    
register_clcmd("say","halt")
    
register_cvar("mp_allowsay","1")
}
public 
say(id)
{
   if (
get_cvar_num("mp_allowsay") == 0)
   {
      new 
message2[192]
      
read_args(message2191)
      
remove_quotes(message2)
      
client_print(idprint_chat"(Say)You May Not speak with command say... Text Imunned: %s"message2);
      return 
PLUGIN_HANDLED;
   }
   return 
PLUGIN_CONTINUE;
}
public 
amx_say(id,level,cid)
{
   if (
cmd_access(idlevelcid2))
   {
     if (
get_cvar_num("mp_allowsay") == 0)
     {
        
set_cvar_num("mp_allowsay",1);
        
console_print(id,"(Say) Now all users can speek in the server");
        return 
PLUGIN_HANDLED;
     }
     else if (
get_cvar_num("mp_allowsay") == 1)
     {
        
set_cvar_num("mp_allowsay",0);
        
console_print(id,"(Say) Now noone can speek in the server");
        return 
PLUGIN_HANDLED;
     }
     return 
PLUGIN_HANDLED;
   }
   return 
PLUGIN_HANDLED;

CODE IS EDITED PLEASE RE CHECK IT
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))

Last edited by ProIcons; 12-26-2009 at 04:27. Reason: EDITED
ProIcons 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 04:06.


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