View Single Post
xeropw
AlliedModders Donor
Join Date: Jun 2016
Old 08-31-2016 , 19:14   Re: [CSGO] Fix - Block ping/status command plugin
Reply With Quote #4

I found a working solution with dhooks library.

Hook clientprintf.
Check if command string buffer contains any of the following:
Code:
Client ping times:
 ms : 
hostname: 
version : 
udp/ip  :
os      :  
type    :  
players : 

# userid name uniqueid connected ping loss state rate
#end
For individual client entries via status command, check for
# "" STEAM_ active
all in the same line. Set the param string as "" and return MRES_ChangedHandled.
Problem? You are replacing individual lines so you need a \n to ensure next command lands on a new line for a seamless "fix"... but, you could do \n for the #end buffer, but ping command does not have an explicit end.

------------

Alternative solution:
make your own status command such as admincmd pstatus which loops through all ingame&&connected&&!fakeplayer clients and parses them in a neat buffer with all the relevant information you want to have =)

I'll make a plugin for it in a few minutes.

Last edited by xeropw; 08-31-2016 at 19:20.
xeropw is offline