Open jonathan-up opened 2 months ago
Tested✔
#include <amxmodx> #include <reapi> public plugin_init() { register_clcmd("say .fnp", "cmd_fnp"); RegisterHookChain(RG_CBasePlayer_Observer_FindNextPlayer, "RG_CBasePlayer_Observer_FindNextPlayer_Pre", false); } public RG_CBasePlayer_Observer_FindNextPlayer_Pre(const this, bool:bReverse, name[]) { client_print(this, print_chat, "FindNextPlayer: bReverse(%d), name(%s)", bReverse, name); } public cmd_fnp(const index) { if (!(get_member(index, m_afPhysicsFlags) & PFLAG_OBSERVER)) { client_print(index, print_chat, "YOUR ARE NOT A OBSERVER"); return PLUGIN_HANDLED; } client_print(index, print_chat, "YOU DID"); rg_observer_find_next_player(index, true, ""); return PLUGIN_HANDLED; }
Tested✔