|
BANNED
Join Date: May 2012
Location: GB
|
04-27-2017
, 16:46
Re: get_user_time is not supported in client_disconnected?
|
#27
|
Quote:
Originally Posted by Arkshine
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
PHP Code:
#include <amxmodx>
public client_disconnected(id) {
new szName[32];
get_user_name(id, szName, 31);
log_to_file("test.log", "player (%i) %s (time %i) disconnected", id, szName, get_user_time(id));
}
|
get_user_time returns 0 when map is changing (server is full - 32 players)
|
|
|
|