View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-29-2015 , 13:17   Re: Best way to get client ping?
Reply With Quote #8

Quote:
Originally Posted by RedSword View Post
m_iScore is a netprops in the resource manager in CSS/GO; not a datamap in the player entity (but its equivalent is m_iFrags in the player, for CS). Therefore unless I'm wrong, it should not work.

If your game isn't CS, it might work.

Red

edit :


AFAIK the think of the scoreboard (being the resource manager) is about ~1 to 4 times a second in CSS; so you better change the datamap (unless you want to change the ping).
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.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline