Question about add to full pack
When i tested using some client_prints
In a server with bots.. using if(!player) return 0; will only use the humans as "host"??
but "ent" can still be the bots correct??
thats what it seemed like.
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_plugin("test", "0.0.1", "SavSin");
register_forward(FM_AddToFullPack, "fwdAddToFullPack", 1);
}
public fwdAddToFullPack(es_handle, e, ent, host, hostflags, player, pSet)
{
if(!player)
return FMRES_IGNORED;
new szHost[32], szEnt[32];
get_user_name(host, szHost, sizeof(szHost));
get_user_name(ent, szEnt, sizeof(szEnt));
client_print(0, print_chat, "DEBUG :: This is the host %s", szHost);
client_print(0, print_chat, "DEBUG :: This is the ent %s", szEnt);
return FMRES_IGNORED;
}