s1lentq / reapi

AMX Mod X module, using API regamedll & rehlds
GNU General Public License v3.0
161 stars 103 forks source link

Add new SV_ConnectClient hook and new native to get IP address #218

Closed RauliTop closed 2 years ago

RauliTop commented 2 years ago

This plugin: https://dev-cs.ru/threads/17518/

Requires SV_ConnectClient to catch the idle bot, but the hook isn't at reapi. So, they need to use Orpheu instead searching for signatures.

Also, it uses Con_Printf to get IP address of connected client, but @francoromaniello has the idea to create a new native called rh_get_net_from.

Other use of SV_ConnectClient can be create a slot reservation plugin with full server 32/32 like detailed here (not tested for me): https://forums.alliedmods.net/showthread.php?t=309040

Giferns commented 2 years ago

we need this, not SV_ConnectClient. Here we have player index and can use get_user_ip().

RauliTop commented 2 years ago

Closed as merged