get_user_ping() on client_authorized() event
Hello all.
I have a question. Why is the "ping" in get_user_ping(id, ping, loss) returns 0 on client_authorized() entity ? Here is what I mean exactly: Code:
public client_putinserver(id)I tried to use client_connect(), client_putinserver(id) And there is the same result. Is there any way to hook client's ping when he is connecting (or authorized, or putinserver) ? |
Re: get_user_ping() on client_authorized() event
If you're testing it on a local server, then 0 is the ping you're expecting. Ask other person to enter your server from the Internet.
|
Re: get_user_ping() on client_authorized() event
Quote:
Anyway, It detects ping 0 before the player will be the "UNASSIGNED". After this it detects ping normally. The question is the same... |
Re: get_user_ping() on client_authorized() event
Try setting a task 5 seconds post-authorization. See if it's the same outcome, or if it's the server not picking it up for some other reason.
|
Re: get_user_ping() on client_authorized() event
Hm.
Code:
new ping, loss |
Re: get_user_ping() on client_authorized() event
Quote:
PHP Code:
|
Re: get_user_ping() on client_authorized() event
PHP Code:
|
Re: get_user_ping() on client_authorized() event
Big thanks!
|
Re: get_user_ping() on client_authorized() event
Is that remove_task necessary since the set_task isn't called to repeat?
|
Re: get_user_ping() on client_authorized() event
Client can disconnect within 5 seconds :arrow: error?
|
| All times are GMT -4. The time now is 07:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.