Raised This Month: $ Target: $400
 0% 

[REQ] Plugin hiding commands in chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maneljinho
Member
Join Date: Apr 2011
Old 02-14-2013 , 15:19   [REQ] Plugin hiding commands in chat
Reply With Quote #1

Plugin that hides the commands that players write in the chat.
maneljinho is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-14-2013 , 16:23   Re: [REQ] Plugin hiding commands in chat
Reply With Quote #2

Code:
register_clcmd("say command", "func")
then
Code:
public func(id)
{
return PLUGIN_HANDLED;
}
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
CrAsH.94
Junior Member
Join Date: Feb 2013
Old 02-14-2013 , 16:26   Re: [REQ] Plugin hiding commands in chat
Reply With Quote #3

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

#define PLUGIN "HideCommand"
#define VERSION "1.0"
#define AUTHOR "CrAsH"

public plugin_init() 
{
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd("say", "CheckMsg")
    register_clcmd("say_team", "CheckMsg")
}

public CheckMsg(id)
{
    new szMessage[192]

    read_args(szMessage, charsmax( szMessage ))
    remove_quotes( szMessage )

    if(szMessage[0] == '/')
    {
        return PLUGIN_HANDLED
    }
    return PLUGIN_CONTINUE
}
Try
CrAsH.94 is offline
maneljinho
Member
Join Date: Apr 2011
Old 02-14-2013 , 16:33   Re: [REQ] Plugin hiding commands in chat
Reply With Quote #4

tks naven and crash, crash the plugin works! (:

Last edited by maneljinho; 02-14-2013 at 16:34.
maneljinho is offline
ozakong
Junior Member
Join Date: Oct 2010
Old 02-14-2013 , 17:13   Re: [REQ] Plugin hiding commands in chat
Reply With Quote #5

Quote:
Originally Posted by naven View Post
Code:
register_clcmd("say command", "func")
then
Code:
public func(id)
{
return PLUGIN_HANDLED;
}
I did what you say and thats what its sad:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Invalid expression, assumed zero on line 20
Error: Undefined symbol "func" on line 20
Warning: Loose indentation on line 21

2 Errors.
Could not locate output file C:\Users\User\Desktop\Surf Menu V1.amx (compile failed).
ozakong is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-14-2013 , 17:53   Re: [REQ] Plugin hiding commands in chat
Reply With Quote #6

lol, it was an example...

Last edited by Unkolix; 02-14-2013 at 17:55.
Unkolix is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-15-2013 , 15:15   Re: [REQ] Plugin hiding commands in chat
Reply With Quote #7

Quote:
Originally Posted by ozakong View Post
I did what you say and thats what its sad:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Invalid expression, assumed zero on line 20
Error: Undefined symbol "func" on line 20
Warning: Loose indentation on line 21

2 Errors.
Could not locate output file C:\Users\User\Desktop\Surf Menu V1.amx (compile failed).
yea, it was just an example, you can't just paste that 'somewhere' in there
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven 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 06:40.


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