Skip to content

Implement SV_EmitPings() hook#212

Merged
wopox1337 merged 8 commits intorehlds:masterfrom
francoromaniello:SV_EmitPings_hook
Oct 23, 2021
Merged

Implement SV_EmitPings() hook#212
wopox1337 merged 8 commits intorehlds:masterfrom
francoromaniello:SV_EmitPings_hook

Conversation

@francoromaniello
Copy link
Contributor

Implement SV_EmitPings hook for rehlds/ReHLDS#858, rehlds/ReHLDS#857

@wopox1337 wopox1337 changed the title Implement SV_EmitPings hook Implement SV_EmitPings() hook Oct 20, 2021
@wopox1337
Copy link
Member

wopox1337 commented Oct 20, 2021

@francoromaniello resolve conflicts please

@francoromaniello
Copy link
Contributor Author

Ready

@wopox1337 wopox1337 added the Type: 🚀 enhancement Improvement or addition of a new feature. label Oct 22, 2021
@wopox1337
Copy link
Member

wopox1337 commented Oct 22, 2021

@francoromaniello At the moment, when using a hook, the server crashes. Could you please fix that?

@francoromaniello
Copy link
Contributor Author

francoromaniello commented Oct 23, 2021

you fixed with the virtual order fix ?

@wopox1337
Copy link
Member

@francoromaniello sure

@wopox1337 wopox1337 merged commit a16dfd0 into rehlds:master Oct 23, 2021
@francoromaniello francoromaniello deleted the SV_EmitPings_hook branch October 23, 2021 12:56
@Biceeeeepss
Copy link

Hey,

There is any plugin now that can make use of this?

Thanks.

@WaLkZa
Copy link

WaLkZa commented Jan 11, 2022

Hey,

There is any plugin now that can make use of this?

Thanks.

Example with Orpheu
https://forums.alliedmods.net/showpost.php?p=1850998&postcount=8

The same with ReAPI

#include <amxmodx>
#include <reapi>

public plugin_init()
{
	RegisterHookChain( RH_SV_EmitPings, "OnSV_EmitPings" );
}

public OnSV_EmitPings()
{
	return HC_SUPERCEDE;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: 🚀 enhancement Improvement or addition of a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants