Raised This Month: $40 Target: $400
 10% 

Fre vip menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vandal.
Junior Member
Join Date: Aug 2018
Old 08-12-2018 , 18:29   Fre vip menu
Reply With Quote #1

hi guys
please guys can someone make or edit for me a plugin

this plugin when every round starting a menu opened with guns choosing

1 - AK47 + deagle
2 - M4a1 + deagle
3 - AWP + Deagle

please guys i hope there is someone can make it

+karma
Vandal. is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 08-12-2018 , 18:44   Re: Fre vip menu
Reply With Quote #2

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

new const PLUGIN[] = "Weapons menu";
new const 
VERSION[] = "1.0";
new const 
AUTHOR[] = "~D4rkSiD3Rs~";

new 
boolWeaponChosen[33];

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_clcmd("weapons""WeaponMenu");
    
register_clcmd("say /weapons""WeaponMenu")

    
RegisterHam(Ham_Spawn"player""Spawn"1);
}

public 
client_putinserver(id)
{
    
WeaponChosen[id] = false;
}

public 
Spawn(id)
{
    if(
is_user_alive(id))
    {
        
WeaponChosen[id] = false;
        
WeaponMenu(id);
    }
}

public 
WeaponMenu(id)
{
    if(
WeaponChosen[id])
        return 
PLUGIN_HANDLED;

    new 
menu menu_create ("Weapons Menu""MenuHandler");

    
menu_additem(menu"AK47 + Deagle""1");
    
menu_additem(menu"M4A1 + Deagle""2");
    
menu_additem(menu"AWP + Deagle""3");

    
menu_display(idmenu);
    return 
1
}

public 
MenuHandler(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        return 
1;
    }
    
    new 
data [6], szName [64];
    new 
accesscallback;
    
menu_item_getinfo (menuitemaccessdata,charsmax (data), szName,charsmax (szName), callback);
    new 
key str_to_num (data);
    
    switch (
key)
    {
        case 
1:
        {
            
WeaponChosen[id] = true;
            
give_item(id"weapon_deagle");
            
cs_set_user_bpammo(idCSW_DEAGLE90);
            
give_item(id"weapon_m4a1");
            
cs_set_user_bpammo(idCSW_AK4790);
        }
        case 
2:
        {
            
WeaponChosen[id] = true;
            
give_item(id"weapon_deagle");
            
cs_set_user_bpammo(idCSW_DEAGLE90);
            
give_item(id"weapon_m4a1");
            
cs_set_user_bpammo(idCSW_M4A190);
        }
        case 
3:
        {
            
WeaponChosen[id] = true;
            
give_item(id"weapon_deagle");
            
cs_set_user_bpammo(idCSW_DEAGLE90);
            
give_item(id"weapon_m4a1");
            
cs_set_user_bpammo(idCSW_AWP90);
        }
    }
    
    
menu_destroy (menu);
    return 
1;

D4rkSiD3Rs is offline
Vandal.
Junior Member
Join Date: Aug 2018
Old 08-13-2018 , 10:24   Re: Fre vip menu
Reply With Quote #3

thank you bro but can you add + he grenade for every skins ?
Vandal. is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 08-13-2018 , 17:33   Re: Fre vip menu
Reply With Quote #4

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

new const PLUGIN[] = "Weapons menu"
new const 
VERSION[] = "1.0"
new const 
AUTHOR[] = "~D4rkSiD3Rs~"

new 
boolWeaponChosen[33]; 

public 
plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR); 

    
register_clcmd("weapons""WeaponMenu"); 
    
register_clcmd("say /weapons""WeaponMenu"

    
RegisterHam(Ham_Spawn"player""Spawn"1); 


public 
client_putinserver(id

    
WeaponChosen[id] = false


public 
Spawn(id

    if(
is_user_alive(id)) 
    { 
        
WeaponChosen[id] = false
        
WeaponMenu(id); 
    } 


public 
WeaponMenu(id

    if(
WeaponChosen[id]) 
        return 
PLUGIN_HANDLED

    new 
menu menu_create ("Weapons Menu""MenuHandler"); 

    
menu_additem(menu"AK47 + Deagle""1"); 
    
menu_additem(menu"M4A1 + Deagle""2"); 
    
menu_additem(menu"AWP + Deagle""3"); 

    
menu_display(idmenu); 
    return 
1;  


public 
MenuHandler(idmenuitem

    if(
item == MENU_EXIT
    { 
        return 
1
    } 
     
    new 
data [6], szName [64]; 
    new 
accesscallback
    
menu_item_getinfo (menuitemaccessdata,charsmax (data), szName,charsmax (szName), callback); 
    new 
key str_to_num (data); 
     
    switch (
key
    { 
        case 
1
        { 
            
WeaponChosen[id] = true
            
give_item(id"weapon_deagle"); 
            
cs_set_user_bpammo(idCSW_DEAGLE90); 
            
give_item(id"weapon_m4a1"); 
            
cs_set_user_bpammo(idCSW_AK4790); 
            
give_item (id"weapon_hegrenade");
        } 
        case 
2
        { 
            
WeaponChosen[id] = true
            
give_item(id"weapon_deagle"); 
            
cs_set_user_bpammo(idCSW_DEAGLE90); 
            
give_item(id"weapon_m4a1"); 
            
cs_set_user_bpammo(idCSW_M4A190); 
            
give_item (id"weapon_hegrenade");
        } 
        case 
3
        { 
            
WeaponChosen[id] = true
            
give_item(id"weapon_deagle"); 
            
cs_set_user_bpammo(idCSW_DEAGLE90); 
            
give_item(id"weapon_m4a1"); 
            
cs_set_user_bpammo(idCSW_AWP90); 
            
give_item (id"weapon_hegrenade");
        } 
    } 
     
    
menu_destroy (menu); 
    return 
1


Last edited by D4rkSiD3Rs; 08-13-2018 at 17:33.
D4rkSiD3Rs is offline
Vandal.
Junior Member
Join Date: Aug 2018
Old 08-15-2018 , 08:07   Re: Fre vip menu
Reply With Quote #5

thank you so much
Vandal. is offline
Reply


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 12:05.


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