View Single Post
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 04-27-2017 , 16:46   Re: get_user_time is not supported in client_disconnected?
Reply With Quote #27

Quote:
Originally Posted by Arkshine View Post
You do likely something wrong.

You get 0 if the provided index is not between 1 and max clients, or the client is not in-game.

Whatever client_disconnecte(d), when the forward is fired, the player is still technically valid (disconnecting), and internally in AMXX nothing is reset yet (that's it the in-game state is not changed).

If you can reproduce the issue on latest dev version, please give the exact steps.
Quote:
Originally Posted by OnePL View Post
PHP Code:
#include <amxmodx>

public client_disconnected(id) {
    new 
szName[32];
    
get_user_name(idszName31);
    
log_to_file("test.log""player (%i) %s (time %i) disconnected"idszNameget_user_time(id));

get_user_time returns 0 when map is changing (server is full - 32 players)
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL