get_user_stats problem
I am writing a plugin in which I have to retrieve the users kills & deaths upon connecting. As of now I am using the get_user_stats call in client_authorized.
Everything is coming up as 0; pos, szStats[0] and szStats[1] I also tried using get_stats() but that looks up stats based on stats index. Does anyone have any ideas? PHP Code:
|
Re: get_user_stats problem
Try to retrieve the rank at client_putinserver, or at the second that happen (authorized vs putinserver)
|
Re: get_user_stats problem
Tried client_putinserver and it still gives the same result.
Any other ideas? Edit: I got it working by checking stats when the player gets spawned. |
Re: get_user_stats problem
try playing around with this
PHP Code:
|
Re: get_user_stats problem
Quote:
|
Re: get_user_stats problem
It seems that you have to be fully connected for that.
It works fine for me using in client_putinserver() + a delay about 1 second ( or a bit more ). By the way I don't understand why. Since we have player's id we should able to retrieve player's stats from csstats.dat even if player is not fully connected yet. |
| All times are GMT -4. The time now is 11:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.