Raised This Month: $ Target: $400
 0% 

Tuning off public method on menu select


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
reinert
Veteran Member
Join Date: Feb 2007
Old 03-11-2010 , 15:56   Re: Tuning off public method on menu select
Reply With Quote #7

PHP Code:
    register_clcmd("say /vipmenu","vipmenu"ADMIN_LEVEL_H

PHP Code:
public vipmenu(id) {    

   if(
get_user_flags(id) & ADMIN_LEVEL_H)
   {
    if (
playerUsedVipMenu[id] == true)
    {
        
client_print(idprint_chat"you can use vipmenu once per round");
        return 
PLUGIN_HANDLED;
    }
    
Menu(id);
    
playerUsedVipMenu[id] = true;
    return 
PLUGIN_HANDLED;
   }else{
       
client_print(idprint_chat"vipmenu only for vips");       
    }
   return 
PLUGIN_HANDLED;

reinert 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 08:36.


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