Raised This Month: $ Target: $400
 0% 

Help for script..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-26-2020 , 09:18   Re: Help for script..
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
The proper way to handle this is to use callbacks like I said in my previous post. It should be quite simple actually. The callback function would only need to be a single line:

Code:
public menuitem_callback( id, menu, item )
{
	return (get_user_flags(id) & VIP_LEVEL_ACCESS) ? ITEM_IGNORE : ITEM_DISABLED;
}
Doing it this way will show the items but they will be grey and they can't be selected. So, it will be obvious that they exist but can't be chosen.
and btw dw bcs i didn't say about you about the thing with Wronger, you showed also another simple method that can be super simple used but not everytime is needed a callback
AnimalMonster 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 17:00.


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