Raised This Month: $ Target: $400
 0% 

[SOLVED] menu callback trouble


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 01-04-2013 , 06:10   Re: menu callback trouble
Reply With Quote #7

PHP Code:
// Admin Check Callback
public Admin_callback(idDM_Menuitem)
{
    new 
data[6], szName[64];
    new 
accesscallback;
    

    
menu_item_getinfo(DM_Menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);

    new 
tempid str_to_num(data);
    
    if( 
is_user_admintempid ) )
    {
        return 
ITEM_DISABLED;
    }    

    return 
ITEM_ENABLED;

Blizzard_87 is offline
 



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 13:44.


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