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

Quote:
Originally Posted by Benoist3012 View Post
So m_iScore work too?
m_iScore is a netprops in the resource manager in CSS/GO, but its datamaps equivalent is m_iFrags for the player, in CS. So if your game is CS, using Asherkin method with "m_iScore" should work.

If you were to get m_iFrags on the resource manager it would not work as it doesn't have that netprop (in CSS/GO at least). However, in CSS at least, they (m_iFrags @ the player entity and m_iScore @ resmanager) represent the same value by default (while CSGO has m_iKills as netprops which I didn't test, which could be replacing CSS m_iScore; while m_iScore would now really represent the player score).

Red

edit :
Quote:
Originally Posted by Black-Rabbit View Post
I will beleive it just the scoreboard that get refresh more rarely but the value itself should be accurate (I might be wrong)
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 if you want to set/get non-ping values.
__________________
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. Reason: clarified
RedSword is offline