Hi, I'm trying to keep a plugin available to people with ADMIN_RESERVATION only. So far so good, but I also want people that don't have this flag to get a custom message instead of the default "You don't have access to this command."
I tried this :
Code:
public cmd_HLMPmenu(id, level, cid) {
if (!cmd_access(id,level,cid,1))
client_print(id, print_console, "Custom message")
return PLUGIN_HANDLED
showMenu(id, g_showPos[id])
return PLUGIN_HANDLED
}
but I get this error when compiling :
Code:
hlmp.sma(179) : warning 225: unreachable code
Can anyone point me in the right direction ?
__________________