added register_menu() | fixed a compiler warning in access()

This commit is contained in:
Felix Geyer 2004-07-31 01:00:20 +00:00
parent 4fccdd676b
commit af69e24eaf

View File

@ -40,8 +40,8 @@ stock cmd_access(id,level,cid,num) {
stock access(id,level) { stock access(id,level) {
if ( level==ADMIN_ADMIN ) if ( level==ADMIN_ADMIN )
return is_user_admin(id) return is_user_admin(id)
else
return (get_user_flags(id) & level) return (get_user_flags(id) & level)
} }
stock is_user_admin(id) { stock is_user_admin(id) {
@ -135,6 +135,9 @@ stock get_configsdir(name[],len)
stock get_datadir(name[],len) stock get_datadir(name[],len)
return get_localinfo("amxx_datadir",name,len) return get_localinfo("amxx_datadir",name,len)
stock register_menu(title[],keys,function[],outside=0)
register_menucmd(register_menuid(title,outside),keys,function)
/* Backwards Compatibility /* Backwards Compatibility
* don't use it! */ * don't use it! */
stock get_customdir(name[],len) stock get_customdir(name[],len)