How do I make a plugin so it works for everyone in the server whats the code? What do I need to change so it work for everyone don't remake the code just tell me!
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
public plugin_init()
{
register_plugin("Menu Hook mod", "1.0", "V3N0M")
register_concmd("say GetHook", "func_gethook", 0)
register_cvar("hookmod_on", "1")
register_clcmd("amx_hook", "hook")
}
public func_gethook(id)
{
if(get_cvar_num("hookmod_on") == 0)
{
return PLUGIN_HANDLED
}
else
{
set_user_rendering(id)
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
__________________