Raised This Month: $51 Target: $400
 12% 

vip gun menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mahdiso
Member
Join Date: Nov 2018
Old 12-13-2018 , 10:23   vip gun menu
Reply With Quote #1

hi
i need vip gun menu by 5 item

1=ak47+deagle+item
2=m4a1+deagle+item
3=famus+deagle_item
4=gali+deagle+item
5=awp+deagle+item


the menu show to to all players on round 3and after

srry for my bad english...
mahdiso is offline
mahdiso
Member
Join Date: Nov 2018
Old 12-13-2018 , 10:24   Re: vip gun menu
Reply With Quote #2

pls help me
mahdiso is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 12-14-2018 , 00:07   Re: vip gun menu
Reply With Quote #3

flags of VIP?

Quote:
ADMIN_KICK

Last edited by Fuck For Fun; 12-14-2018 at 03:40.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 12-14-2018 , 05:36   Re: vip gun menu
Reply With Quote #4

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


public plugin_init() 
{
    RegisterHam(Ham_Spawn, "player", "ShowMenu", 1) 
}

public ShowMenu(id)
{
    if(!is_user_alive(id))
        return PLUGIN_HANDLED

    new menu = menu_create("\yWeapons Menu \w(\rVIP\w)", "WeaponsMenu");

    menu_additem(menu, "Ak47 \yAnd \wDeagle", "", 0); // case 0
    menu_additem(menu, "M4A1 \yAnd \wDeagle", "", 0); // case 1
    menu_additem(menu, "Awp \yAnd \wDeagle", "", 0); // case 2
    menu_additem(menu, "Galil \yAnd \wDeagle", "", 0); // case 3
    menu_additem(menu, "Famas \yAnd \wDeagle", "", 0); // case 4


    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);

    menu_display(id, menu, 0);

    return PLUGIN_HANDLED;
}
// Menu
public WeaponsMenu(id, menu, item)
{

    new flags = get_user_flags(id)
    if(!(flags & ADMIN_LEVEL_H))
    {
        client_print(id,print_chat,"You have no access to this command")
        return PLUGIN_HANDLED
    }

    if(item == MENU_EXIT)
    {
        menu_cancel(id);
        return PLUGIN_HANDLED;
    }
    switch(item)
    {
        case 0:
        {
            strip_user_weapons(id)
            give_item(id, "weapon_ak47")
            cs_set_user_bpammo(id,CSW_AK47,90)
            give_item(id, "weapon_deagle")
            cs_set_user_bpammo(id,CSW_DEAGLE,35)
            give_item(id, "weapon_knife")
        }
        case 1:
        {
            strip_user_weapons(id)
            give_item(id, "weapon_m4a1");
            cs_set_user_bpammo(id,CSW_M4A1,90)
            give_item(id, "weapon_deagle")
            cs_set_user_bpammo(id,CSW_DEAGLE,35)
            give_item(id, "weapon_knife")
        }            
        case 2:
        {
            strip_user_weapons(id)
            give_item(id, "weapon_awp")
            cs_set_user_bpammo(id, CSW_AWP, 30);
            give_item(id, "weapon_deagle")
            cs_set_user_bpammo(id,CSW_DEAGLE,35)
            give_item(id, "weapon_knife")

        }
        case 3:
        {
            strip_user_weapons(id)
            give_item(id, "weapon_galil")
            cs_set_user_bpammo(id,CSW_GALIL,90)
            give_item(id, "weapon_deagle")
            cs_set_user_bpammo(id,CSW_DEAGLE,35)
            give_item(id, "weapon_knife")
        }
        case 4:
        {
            strip_user_weapons(id)
            give_item(id, "weapon_famas");
            cs_set_user_bpammo(id,CSW_FAMAS,90)
            give_item(id, "weapon_deagle")
            cs_set_user_bpammo(id,CSW_DEAGLE,35)
            give_item(id, "weapon_knife")
        }            

    }

    menu_destroy(menu);

    return PLUGIN_HANDLED;
}
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
Old 12-14-2018, 06:26
mahdiso
This message has been deleted by mahdiso.
mahdiso
Member
Join Date: Nov 2018
Old 12-14-2018 , 06:27   Re: vip gun menu
Reply With Quote #5

Quote:
Originally Posted by Fuck For Fun View Post
flags of VIP?
for all players
mahdiso is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-14-2018 , 06:50   Re: vip gun menu
Reply With Quote #6

Since when are all players VIP?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 12-14-2018 , 07:08   Re: vip gun menu
Reply With Quote #7

Quote:
Originally Posted by mahdiso View Post
for all players
Sorry, late on post I connected via PHONE
Code:
#include < amxmodx >
#include < cstrike >
#include < fun >
#include < hamsandwich >

#define PLUGIN "Weapons Menu"
#define VERSION "1.0"
#define AUTHOR "CheezPuff"

#define VIP_ACCESS ADMIN_KICK // You can change the vip flag
 
public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	RegisterHam( Ham_Spawn, "player", "PlayerSpwn_pre", true );
}

public PlayerSpwn_pre( id )
{
	if ( !is_user_alive( id ) || !(get_user_flags( id ) &  VIP_ACCESS))
		return PLUGIN_HANDLED;

	set_task( 1.0, "ShowMenu", id, _,_, "b");
     
	return PLUGIN_HANDLED;
}

public ShowMenu( id )
{
	if ( is_user_alive( id ) || !(get_user_flags( id ) &  VIP_ACCESS)) // I think it's unnecessary to check VIP_access
		return PLUGIN_HANDLED;
	
	new szMenu[ 64 ]; //size
	formatex(szMenu,charsmax(szMenu),"VIP \d- \wWeapons Menu");
	
	new menu = menu_create(szMenu, "WeaponsMenuHandler");
	
	menu_additem(menu, "M4A1\y+\wDeagle")
	menu_additem(menu, "AK47\y+\wDeagle")
	menu_additem(menu, "AWP\y+\wDeagle")
	menu_additem(menu, "Famas\y+\wDeagle")
        menu_additem(menu, "Galil\y+\wDeagle")
	
	menu_display(id, menu, 0);
	
	return PLUGIN_HANDLED;
}
 
public WeaponsMenuHandler(id, menu, item)
{
    if(!(get_user_flags( id ) &  VIP_ACCESS))
	return PLUGIN_HANDLED

    if( item == MENU_EXIT )
    {
        menu_destroy(menu);
        return PLUGIN_HANDLED;
    }

    switch(item)
    {
        case 0:
        {  
            give_item( id, "weapon_m4a1" );
            cs_set_user_bpammo( id, CSW_M4A1, 120 );
            give_item( id, "weapon_deagle" );
            cs_set_user_bpammo( id, CSW_DEAGLE, 120 );
        }
       
        case 1:
        {
            give_item( id, "weapon_ak47" );
            cs_set_user_bpammo( id, CSW_AK47, 120 );
            give_item( id, "weapon_deagle" );
            cs_set_user_bpammo( id, CSW_DEAGLE, 120 );
        }
       
        case 2:
        {
            give_item( id, "weapon_awp" );
            cs_set_user_bpammo( id, CSW_AWP, 120 );
            give_item( id, "weapon_deagle" );
            cs_set_user_bpammo( id, CSW_DEAGLE, 120 );
        }
       
        case 3:
        {
            give_item( id, "weapon_famas" );
            cs_set_user_bpammo( id, CSW_FAMAS, 120 );
            give_item( id, "weapon_deagle" );
            cs_set_user_bpammo( id, CSW_DEAGLE, 120 );
        }

        case 4:
        {
            give_item( id, "weapon_galil" );
            cs_set_user_bpammo( id, CSW_GALIL, 120 );
            give_item( id, "weapon_deagle" );
            cs_set_user_bpammo( id, CSW_DEAGLE, 120 );
        }
    }
    return PLUGIN_HANDLED
}

Last edited by Fuck For Fun; 12-14-2018 at 13:18.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
raizo11
BANNED
Join Date: Dec 2013
Location: https://t.me/pump_upp
Old 12-14-2018 , 11:02   Re: vip gun menu
Reply With Quote #8

just remove this

new flags = get_user_flags(id)
if(!(flags & ADMIN_LEVEL_H))
{
client_print(id,print_chat,"You have no access to this command")
return PLUGIN_HANDLED
}
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
MagNNusS
Member
Join Date: May 2018
Location: World of Bushi
Old 12-15-2018 , 09:24   Re: vip gun menu
Reply With Quote #9

Quote:
Originally Posted by mahdiso View Post
the menu show to to all players on round 3and after
This guy wants his menu to be opened after the third round. Not every spawn.
__________________
Just an impractical signature
nothing to see here.
MagNNusS is offline
mahdiso
Member
Join Date: Nov 2018
Old 12-15-2018 , 11:14   Re: vip gun menu
Reply With Quote #10

Quote:
Originally Posted by OciXCrom View Post
Since when are all players VIP?
all players
mahdiso is offline
Old 12-15-2018, 15:17
raizo11
This message has been deleted by raizo11.
Reply



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:44.


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