Quote:
Originally Posted by Bugsy
Show your code
|
Sure.
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "arsmi"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your code here...
}
public client_disconnected(id, bool:drop, message[], maxlen)
{
if(drop)
{
log_amx("dropped by server")
return PLUGIN_HANDLED
}
else
{
log_amx("Player dropped itself")
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
Code:
L 04/22/2019 - 10:00:32: [plmenu.amxx] Kick: "iceeedR<1><STEAMxxxxxx><>" kick "iceeedR<1><STEAMxxxxxx><>"
L 04/22/2019 - 10:00:33: [tst.amxx] Player dropped itself
Another question, sometimes it is possible to get the team from whoever left "cs_get_user_team"), and sometimes it generates the error log, but this is correct? Given that in the API says "When this fires the entity player is still valid (eg is_user_connected (id) will return true), but in the networked commands will reach the client. "
__________________