Raised This Month: $ Target: $400
 0% 

Custom message in console when access is denied


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 11-06-2005 , 19:52   Custom message in console when access is denied
Reply With Quote #1

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 ?
__________________
Janet Jackson is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode