#include <amxmodx>
#include <reapi>
public plugin_init() {
register_plugin("Spect Ignore Bots", "1", "He CHEL74")
RegisterHookChain(RG_CBasePlayer_Observer_IsValidTarget, "Observer_IsValidTarget_Pre")
}
public Observer_IsValidTarget_Pre(pSpectator, pTarget) {
if(is_user_bot(pTarget)) {
SetHookChainReturn(ATYPE_INTEGER, 0)
return HC_SUPERCEDE
}
return HC_CONTINUE
}