Raised This Month: $ Target: $400
 0% 

HNS Vipmenu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xfirestorm
Member
Join Date: Mar 2012
Old 03-01-2013 , 07:05   Re: HNS Vipmenu
Reply With Quote #7

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#include <colorchat>

#define ADMIN_VIP    ADMIN_LEVEL_H

new g_iMenuId;

new 
bool:AlreadyUsed[33];

public 
plugin_init()
{
    
register_plugin("Vipmenu""1.0""Ranel");
    
register_clcmd("say /vipmenu""VMENU");

    
g_iMenuId menu_create("\yVipmenu""HandleMenu");
    
menu_additem(g_iMenuId"HE""1");
    
menu_additem(g_iMenuId"FBx2""2");
    
menu_additem(g_iMenuId"FN""3");
        
menu_additem(g_iMenuId"USP(2bullets)""4");
}

public 
VMENU(id)
{
    if(
is_user_alive(id) && AlreadyUsed[id] && access(idADMIN_VIP) || access(idADMIN_MENU)) {
        
menu_display(idg_iMenuId);
    }
}

public 
HandleMenu(idiMenuIdiItem)
{
    if(
iItem == MENU_EXIT || !is_user_alive(id))
        return 
PLUGIN_HANDLED;

    
AlreadyUsed[id] = true;
    switch(
iItem)
    {
        case 
0:
        {
            
give_item(id"weapon_hegrenade");
                        
ColorChat(idNORMAL"^x04[^x03Vipmenu^x04]^x01 You choosed HeGrenade");
        }

        case 
1:
        {
            
give_item(id"weapon_flashbang");
                        
give_item(id"weapon_flashbang");
                        
ColorChat(idNORMAL"^x04[^x03Vipmenu^x04]^x01 You choosed 2 FlashBangs");
        }


        case 
2:
        {
            
give_item(id"weapon_smokegrenade");
                        
ColorChat(idNORMAL"^x04[^x03Vipmenu^x04]^x01 You choosed FrostNade");
        }

                case 
3:
                {
                        new 
iWeapon give_itemid"weapon_usp" )
            
cs_set_weapon_ammoiWeapon)
                        
ColorChat(idNORMAL"^x04[^x03Vipmenu^x04]^x01 You choosed USP with 2 bullets");
                }
    }

    return 
PLUGIN_HANDLED;

This should.
xfirestorm 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 21:41.


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