Raised This Month: $ Target: $400
 0% 

someone leaves the code say?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hasler
BANNED
Join Date: Jul 2009
Location: Argentina, Rosario
Old 12-25-2009 , 07:52   someone leaves the code say?
Reply With Quote #1

someone leaves the code say? thanks.
Hasler is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 12-25-2009 , 10:44   Re: someone leaves the code say?
Reply With Quote #2

PHP Code:
#include <amxmodx>

public client_disconnect(id) {
    new 
name[33];
    
get_user_name(id,name,32);
    
client_print(0print_chat"%s has left the server"name);

lazarev is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-25-2009 , 11:53   Re: someone leaves the code say?
Reply With Quote #3

ummm . . . the game already does that.
__________________
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-25-2009 , 14:18   Re: someone leaves the code say?
Reply With Quote #4

But it doesn't display in the chat, if he's talking about cs.
__________________
Arkshine is offline
Hasler
BANNED
Join Date: Jul 2009
Location: Argentina, Rosario
Old 12-25-2009 , 22:21   Re: someone leaves the code say?
Reply With Quote #5

sorry for my english.. but i want the code of the say.. example..

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

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say","say")
}

public 
say(id){
           
//code of say..


thnks
Hasler is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 12-26-2009 , 03:11   Re: someone leaves the code say?
Reply With Quote #6

what do u need?
Quote:
"someone leaves the code say"
so u need a chat message if someone leaves :\
lazarev is offline
Hasler
BANNED
Join Date: Jul 2009
Location: Argentina, Rosario
Old 12-26-2009 , 04:13   Re: someone leaves the code say?
Reply With Quote #7

well, im creating a plugin wath u can turn off/on the "say".. and my code is this but i don't understend how can desblock "say" and block yes.
if anyone can help me I appreciate it.

PHP Code:
#include <amxmodx>

new say_on

public plugin_init() {
    
register_plugin("say on - say off""1.1""Hasler")
    
    
register_clcmd("say","amx_say")
    
say_on register_cvar("amx_nosay","1")
}

public 
amx_say(id){
    if(
get_pcvar_num(say_on))
    {
        
register_clcmd("say","hook")
        
client_print(idprint_chat,"[AMXX] the no say is enabled")
    }
    else
    {
        
register_clcmd("say","say2")
    }
}

public 
hook() return PLUGIN_HANDLED

public say2(id){
    
//code of say



Hasler is offline
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
Hasler
BANNED
Join Date: Jul 2009
Location: Argentina, Rosario
Old 12-26-2009 , 04:31   Re: someone leaves the code say?
Reply With Quote #9

Quote:
Originally Posted by ProIcons View Post
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

Thanks, but this part of code I served
PHP Code:
#include <amxmodx>

public plugin_init() {
    
register_plugin("say on - say off""1.1""Hasler")
    
    
register_clcmd("say","amx_say")
    
register_cvar("amx_nosay","0")
}

public 
amx_say(id)
{
   if (
get_cvar_num("amx_nosay") == 1)
   {
      
client_print(idprint_chat"[AMXX] El say esta desactivado");
      return 
PLUGIN_HANDLED;
   }
   return 
PLUGIN_CONTINUE;

Hasler is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 12-26-2009 , 04:36   Re: someone leaves the code say?
Reply With Quote #10

Ehm take mine and change it...:S
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
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 04:07.


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