Raised This Month: $ Target: $400
 0% 

HNS Vipmenu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
midahekki
Junior Member
Join Date: Mar 2013
Old 03-01-2013 , 05:53   HNS Vipmenu
Reply With Quote #1

Hey, could someone please make this plugin so that i can only use the command once per round.
i think its something to do with bool:AlreadyUsed[33] but i dont know how to make it work. if someone could help me i would be happy

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

#define ADMIN_VIP    ADMIN_LEVEL_H

new g_iMenuId;

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) && access(idADMIN_VIP) || access(idADMIN_MENU))
        
menu_display(idg_iMenuId);
}

public 
HandleMenu(idiMenuIdiItem)
{
    if(
iItem == MENU_EXIT || !is_user_alive(id))
        return 
PLUGIN_HANDLED;
        
}
        
    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;

midahekki is offline
 


Thread Tools
Display Modes

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