Raised This Month: $ Target: $400
 0% 

Orpheu - catching players say text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Clauu
Senior Member
Join Date: Feb 2008
Location: RO
Old 04-22-2015 , 17:10   Orpheu - catching players say text
Reply With Quote #1

Ok so i'm trying to catch players 'say' text with orpheu, an member guided me to this https://forums.alliedmods.net/showthread.php?t=150047 and as i can see Arkshine recommended 'Host_Say()" but how can i use it?
Clauu is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 04-22-2015 , 22:04   Re: Orpheu - catching players say text
Reply With Quote #2

just hook ClientCommand
hzqst is offline
Clauu
Senior Member
Join Date: Feb 2008
Location: RO
Old 04-23-2015 , 04:58   Re: Orpheu - catching players say text
Reply With Quote #3

As i can see ClientCommand would be hooked from client dll module right? I need something to hook from the server, like incoming strings/messages that are going to be printed in chat

Last edited by Clauu; 04-23-2015 at 04:59.
Clauu is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 04-23-2015 , 05:48   Re: Orpheu - catching players say text
Reply With Quote #4

Quote:
Originally Posted by Clauu View Post
As i can see ClientCommand would be hooked from client dll module right? I need something to hook from the server, like incoming strings/messages that are going to be printed in chat
ClientCommand is a dllfunc in fakemeta_const.inc, it's server-side
hzqst is offline
Clauu
Senior Member
Join Date: Feb 2008
Location: RO
Old 04-23-2015 , 08:31   Re: Orpheu - catching players say text
Reply With Quote #5

Ok.. so
PHP Code:
#include <amxmisc>
#include <orpheu>
#include <orpheu_stocks>

public plugin_init()
{
    
register_plugin("oprheu_test""1.0""orpheu_test");
    new 
OrpheuFunction:ClientCommand OrpheuGetEngineFunction("ClientCommand","ClientCommand");
    
OrpheuRegisterHook(ClientCommand,"ClientCommand");
}

public 
ClientCommand(what here?) // void ClientCommand(edict_t *pEntity)
{
    

PHP Code:
{
    
"name" "ClientCommand",
    
"library" "engine",
    
"arguments" :
    [
        {
            
"type" "edict_t *"
        
}
    ]


Last edited by Clauu; 04-23-2015 at 08:34.
Clauu is offline
Clauu
Senior Member
Join Date: Feb 2008
Location: RO
Old 04-24-2015 , 07:11   Re: Orpheu - catching players say text
Reply With Quote #6

Any help on this, please?
Clauu is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-24-2015 , 08:29   Re: Orpheu - catching players say text
Reply With Quote #7

Is there a specific reason you want to use Orpheu when you can do this with a standard plugin?
__________________
fysiks is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-24-2015 , 09:06   Re: Orpheu - catching players say text
Reply With Quote #8

Well, i can't look at sdk right now but i guess there is some function for this. If not, then you should register_clcmd "say" and "say_team". Doesn't matters if it's orpheu or not, makes no sense to filter all the client cmds for chat only.
__________________
Jhob94 is offline
Clauu
Senior Member
Join Date: Feb 2008
Location: RO
Old 04-24-2015 , 10:52   Re: Orpheu - catching players say text
Reply With Quote #9

Well i know that there is register_clcmd "say" but for some reasons it fails for my purpose. What i'm trying to do, well now there is a new way of spamming servers with advertises - there is something i don't know what exactly that emulate a fake player, maybe a podbot modified or i don;t know that joins the server and even the game and start spamming in chat x messages, message after message very quickly that even the integrated flood plugin from amxx isn't blocking messages although i have increased the limit to something bigger so since this plugin is based on the same register_clcmd "say" it;s failing again so this method isn't accurate. I can guarantee that it;s a fake player and not a real one since i have been spectating on them, he enters the server and the game and then isn't moving at all only 'robotic' moves with the view like an old camera up-down-rotate, sometimes joins like 2-3 with the same ip and some random port. So i need to catch messages directly and for that orpheu may be the solution. A hardcore solution is to block the entire packet from a router but it;s way to drastic since it will be very cpu consumption in filtering l7
Clauu is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 04-24-2015 , 15:14   Re: Orpheu - catching players say text
Reply With Quote #10

So just hook the SayText message instead of the command.
No need to use Orpheu for that basic function.
__________________
Black Rose 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 01:13.


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