Raised This Month: $ Target: $400
 0% 

Ways to get player's ping?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
- Billy The Kid -
Member
Join Date: Oct 2006
Old 11-14-2006 , 06:18   Ways to get player's ping?
Reply With Quote #1

I would like to get player's ping from a thread that is already reading it, for example - scoreboard ping, or even better if some other thread gets ping from players more often... Is there a way if get_user_ping doesn't work this way?

Sry if I misused some of the terms - bad translation
Thx in advance ;)
__________________
- Billy The Kid - is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 11-14-2006 , 07:20   Re: Ways to get player's ping?
Reply With Quote #2

post the code you are using.
You can use get_user_ping like this:

Code:
new ping, loss
get_user_ping(id,ping, loss) 
console_print(id,"%i",ping)
dutchmeat is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 11-14-2006 , 07:53   Re: Ways to get player's ping?
Reply With Quote #3

No, you didn't understand the point... I know how to do it with get_user_ping, that's easy...

I'm interested in way get_user_ping function is getting the ping... and second, I'm interested in any other way like getting ping from scoreboard or any other thread that is constantly getting player ping...
__________________
- Billy The Kid - is offline
dutchmeat
Senior Member
Join Date: Sep 2006
Old 11-14-2006 , 08:09   Re: Ways to get player's ping?
Reply With Quote #4

You can try:
Code:
new userping[33]
public server_frame() {
for(new a = 1; a <= get_playersnum(); a++) {
new ping[8]
get_user_info(a,"ping",ping,7)
userping[a] = ping
}
OR:

Code:
new userping[33] public server_frame() { for(new a = 1; a <= get_playersnum(); a++) { new ping, loss get_user_ping(id,ping, loss) userping[a] = ping }
dutchmeat is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 11-14-2006 , 09:35   Re: Ways to get player's ping?
Reply With Quote #5

he knows that get_user_ping gets the user's ping DUH he wants the backing code that the function get_user_ping is created with see:
Quote:
Originally Posted by - Billy The Kid - View Post
No, you didn't understand the point... I know how to do it with get_user_ping, that's easy...

I'm interested in way get_user_ping function is getting the ping... and second, I'm interested in any other way like getting ping from scoreboard or any other thread that is constantly getting player ping...
if I am not mistaking this belongs in module coding help :/
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 11-14-2006 , 10:13   Re: Ways to get player's ping?
Reply With Quote #6

Yap, Rolnaaba is right... Module coding? OK, I'll try there... Thx

Thx for effort dutchmeat...

What about scoreboard player ping or any other thread that is already getting the ping?
__________________

Last edited by - Billy The Kid -; 11-14-2006 at 10:15.
- Billy The Kid - is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 11-14-2006 , 12:06   Re: Ways to get player's ping?
Reply With Quote #7

scoreboard player ping is hardcoded into game I dunno how but if you can disect game source code go for it
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode