Raised This Month: $32 Target: $400
 8% 

Disable ping send


Post New Thread Reply   
 
Thread Tools Display Modes
prinoybullboy
Member
Join Date: Aug 2014
Old 01-25-2015 , 13:57   Re: Disable ping send
Reply With Quote #11

Quote:
Originally Posted by Arkshine View Post
/orpheu/functions/SV_EmitPings :
Code:
{
    "name"      : "SV_EmitPings",
    "library"   : "engine",
    "arguments" : 
    [
        {
            "type" : "pointer"
        },
        {
            "type" : "pointer"
        }
    ],
    "identifiers" :
    [
        {
            "os"    : "windows",
            "value" : [0x55,0x8B,"*",0x51,0x53,0x8B,"*","*",0x56,0x57,0x6A,"*",0x53]
        },
        {
            "os"    : "linux",
            "value" : "SV_EmitPings"
        }
    ]
}

Code:
#include <amxmodx> #include <orpheu> public plugin_init() {     OrpheuRegisterHook( OrpheuGetFunction( "SV_EmitPings" ), "OnSV_EmitPings" ); } public OrpheuHookReturn:OnSV_EmitPings() {     return OrpheuSupercede; }
Arkshine it shows the ping when I typin "ping" in console Please can you make it in such a way that it blocks the ping command
prinoybullboy is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 01-26-2015 , 09:08   Re: Disable ping send
Reply With Quote #12

Is there any legitimate reason to hide the ping you have? You can always use net_graph to show your real ping, also "ping" is a client-side command (?).
__________________
Kia is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 01-26-2015 , 19:26   Re: Disable ping send
Reply With Quote #13

Quote:
Originally Posted by Kia View Post
also "ping" is a client-side command (?).
Not entirely. When client executes ping, Host_Ping_f is called on server side which prints out ping of players.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-26-2015 , 22:01   Re: Disable ping send
Reply With Quote #14

I didn't test it but should work.

Host_Ping_f
Code:
{
    "name"      : "Host_Ping_f",
    "library"   : "engine",
    "identifiers" :
    [
        {
            "os"    : "windows",
            "value" : [0xA1,"*","*","*","*",0x56,0x83,"*","*",0x57,0x75,"*",0x5F,0x5E,0xE9]
        },
        {
            "os"    : "linux",
            "value" : "Host_Ping_f"
        }
    ]
}
plugin.sma
PHP Code:
#include <amxmodx>
#include <orpheu>

public plugin_init(){
    
OrpheuRegisterHook(OrpheuGetFunction("Host_Ping_f"), "OnHost_Ping_f");
}

public 
OrpheuHookReturn:OnHost_Ping_f(){
    return 
OrpheuSupercede;

Edit: I deleted the signature of bytes because it is wrong, I took it from linux version... let me update it.

Edit2: Now should be ok.
__________________

Last edited by Neeeeeeeeeel.-; 01-26-2015 at 22:12.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 01-27-2015 , 01:34   Re: Disable ping send
Reply With Quote #15

Alright, thanks for clarification.
__________________
Kia is offline
WaLkMaN
Senior Member
Join Date: Oct 2010
Location: Varna, Bulgaria
Old 10-16-2022 , 14:58   Re: Disable ping send
Reply With Quote #16

Quote:
Originally Posted by Arkshine View Post
Code:
#include <amxmodx> #include <orpheu> public plugin_init() {     OrpheuRegisterHook( OrpheuGetFunction( "SV_EmitPings" ), "OnSV_EmitPings" ); } public OrpheuHookReturn:OnSV_EmitPings() {     return OrpheuSupercede; }
ReAPI equivalent:

Code:
#include <amxmodx> #include <reapi> public plugin_init() {     RegisterHookChain( RH_SV_EmitPings, "OnSV_EmitPings" ); } public OnSV_EmitPings() {     return HC_SUPERCEDE; }
__________________
WaLkMaN 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 23:20.


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