View Single Post
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 05-30-2015 , 00:12   Re: Best way to get client ping?
Reply With Quote #10

Quote:
Originally Posted by Powerlord View Post
Did you look at asherkin's source code right above his question?

It's calling GetPlayerResourceEntity(), which returns the entity index of the game-specific child of CPlayerResource... which controls the scoreboard.
I saw his code, but cam0 talks about m_iFrags as if he could be getting that value from the resource manager, which he can't (it must be m_iScore). Thanks for pointing that out. I did change/correct/clarify my post.

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 05-30-2015 at 00:18.
RedSword is offline