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

Solved Need a Vip Menu Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Famdl
Junior Member
Join Date: Mar 2017
Old 03-25-2017 , 20:07   Need a Vip Menu Plugin
Reply With Quote #1

Hi EveryOne i need a vip menu plugin Like This Picture(M4A1+AK47 For All Users And 5Guns For who Have Flag T) And Give HeGrenade+2FB+SG To Vips

Last edited by Famdl; 04-04-2017 at 08:35.
Famdl is offline
Old 03-29-2017, 02:10
Famdl
This message has been deleted by Famdl. Reason: Not Related!
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 03-29-2017 , 07:59   Re: Need a Vip Menu Plugin
Reply With Quote #2

here you go, i write as your request :
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>

#define PLUGIN "VIP Weapon Menu"
#define VERSION "0.1"
#define AUTHOR "yas17sin"

#define ADMIN_ACCESS ADMIN_LEVEL_H

new menu;

new 
cvar_second;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
    
cvar_second register_cvar("Show_Menu_Secondes""5.0")
    
//register_clcmd("nightvision", "Vip_menu")
    
    //register_clcmd("say /vm", "Vip_menu") // uncoment this ( remove //) to use a commande (/vm) for menu.
    //register_clcmd("say /vipmenu", "Vip_menu") // uncoment this ( remove //) to use a commande (/vipmenu) for menu.
}
public 
fw_PlayerSpawn_Post(id)

    if (!
is_user_alive(id))
        return;
        
    
set_task(get_pcvar_float(cvar_second), "Vip_menu"id)
}
        
public 
Vip_menu(id)
{
    if (!
is_user_alive(id))
        return
    
    new 
flags get_user_flags(id)
    
    
menu menu_create("\rVIP \wGun Menu""VIP_handler")
    
    
menu_additem(menu"\wM4A1 \yWith \wDealge"""0)
    
menu_additem(menu"\wAK47 \yWith \wDealge"""0)
    
    if(
flags ADMIN_ACCESS)
        
menu_additemmenu"\wFAMAS \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_ACCESS)
    else
        
menu_additemmenu"\dFAMAS + Dealge + iTem Pack \r[VIP]"""ADMIN_ACCESS)
    
    if(
flags ADMIN_ACCESS)
        
menu_additemmenu"\wGALIL \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_ACCESS)
    else
        
menu_additemmenu"\dGALIL + Dealge + iTem Pack \r[VIP]"""ADMIN_ACCESS)
    
    if(
flags ADMIN_ACCESS)
        
menu_additemmenu"\wAWP \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_ACCESS)
    else
        
menu_additemmenu"\dAWP + Dealge + iTem Pack \r[VIP]"""ADMIN_ACCESS)
    
    if(
flags ADMIN_ACCESS)
        
menu_additemmenu"\wAK47 \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_ACCESS)
    else
        
menu_additemmenu"\dAK47 + Dealge + iTem Pack \r[VIP]"""ADMIN_ACCESS)
    
    if(
flags ADMIN_ACCESS)
        
menu_additemmenu"\wM4A1 \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_ACCESS)
    else
        
menu_additemmenu"\dFAMAS + Dealge + iTem Pack \r[VIP]"""ADMIN_ACCESS)
    
    
menu_display(idmenu0)
}
public 
VIP_handler(idmenuitem)
{
    if (!
is_user_alive(id))
        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(idCSW_M4A190)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
        }
        case 
1:
        {
            
give_item(id"weapon_ak47")
            
cs_set_user_bpammo(idCSW_AK4790)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
        }
        case 
2:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_famas")
            
cs_set_user_bpammo(idCSW_FAMAS25)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
        case 
3:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_galil")
            
cs_set_user_bpammo(idCSW_GALI35)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
        case 
4:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_awp")
            
cs_set_user_bpammo(idCSW_AWP30)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
        case 
5:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_ak47")
            
cs_set_user_bpammo(idCSW_AK4790)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
        case 
6:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_m4a1")
            
cs_set_user_bpammo(idCSW_M4A190)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
    }
    return 
PLUGIN_HANDLED;

Attached Files
File Type: sma Get Plugin or Get Source (VIP-WeaponMenu.sma - 765 views - 5.1 KB)
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 04-06-2017 at 06:11. Reason: Update!!
yas17sin is offline
Send a message via ICQ to yas17sin
Old 03-30-2017, 00:37
Famdl
This message has been deleted by Famdl. Reason: Fixed!
sirerick
Senior Member
Join Date: Jul 2012
Location: Venezuela
Old 03-30-2017 , 07:35   Re: Need a Vip Menu Plugin
Reply With Quote #3

reason of MSG_ONE or MSG_ONE_UNRELIABLE with no target entity is for this



PHP Code:
register_logevent("new_round"2"1=Round_Start"

public 
new_round(id)
{
    
Vip_menu(id);

test

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

#define PLUGIN "VIP Weapon Menu"
#define VERSION "0.1"
#define AUTHOR "yas17sin"

new menu;

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
//register_clcmd("nightvision", "Vip_menu")
    
    //register_clcmd("say /vm", "Vip_menu") // uncoment this ( remove //) to use a commande (/vm) for menu.
    //register_clcmd("say /vipmenu", "Vip_menu") // uncoment this ( remove //) to use a commande (/vipmenu) for menu.
}
public 
fw_PlayerSpawn_Post(id)

    if (!
is_user_alive(id))
        return;
        
    
Vip_menu(id)
}
        
public 
Vip_menu(id)
{
    if (!
is_user_alive(id))
        return
    
    
menu menu_create("\rVIP \wGun Menu""VIP_handler")
    
    
menu_additem(menu"\wM4A1 \yWith \wDealge"""0)
    
menu_additem(menu"\wAK47 \yWith \wDealge"""0)
    
menu_additem(menu"\wFAMAS \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_LEVEL_H)
    
menu_additem(menu"\wGALIL \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_LEVEL_H)
    
menu_additem(menu"\wAWP \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_LEVEL_H)
    
menu_additem(menu"\wAK47 \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_LEVEL_H)
    
menu_additem(menu"\wM4A1 \y+ \wDealge \y+ \wiTem Pack \r[VIP]"""ADMIN_LEVEL_H)
    
    
menu_display(idmenu0)
}
public 
VIP_handler(idmenuitem)
{
    if (!
is_user_alive(id))
        return 
PLUGIN_HANDLED 
    
    
if(item == MENU_EXIT)
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    switch(
item)
    {
        case 
0:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_m4a1")
            
cs_set_user_bpammo(idCSW_M4A190)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
        }
        case 
1:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_ak47")
            
cs_set_user_bpammo(idCSW_AK4790)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
        }
        case 
2:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_famas")
            
cs_set_user_bpammo(idCSW_FAMAS25)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
        case 
3:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_galil")
            
cs_set_user_bpammo(idCSW_GALI35)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
        case 
4:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_awp")
            
cs_set_user_bpammo(idCSW_AWP30)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
        case 
5:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_ak47")
            
cs_set_user_bpammo(idCSW_AK4790)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
        case 
6:
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_m4a1")
            
cs_set_user_bpammo(idCSW_M4A190)
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_hegrenade")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_flashbang")
            
give_item(id"weapon_smokegrenade")
        }
    }
    return 
PLUGIN_HANDLED;

__________________
√ Zombie plague + greats updates. finished.
√ Surf-Mod level + greats updates Finished.
√ Zombie Scenario like cso. Finished.
Click Here
√ Call Of Duty MOD. Finished.
Click Here


Sorry for my bad english. I'm using translate.
sirerick is offline
Old 04-03-2017, 05:39
Famdl
This message has been deleted by Famdl. Reason: Fixed!
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-03-2017 , 06:19   Re: Need a Vip Menu Plugin
Reply With Quote #4

check the code i update it.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 04-03-2017 at 06:20.
yas17sin is offline
Send a message via ICQ to yas17sin
Old 04-03-2017, 07:54
Famdl
This message has been deleted by Famdl. Reason: Fixed!
Old 04-03-2017, 15:21
yas17sin
This message has been deleted by yas17sin. Reason: nvm.!!
Old 04-04-2017, 07:07
Famdl
This message has been deleted by Famdl. Reason: Fixed!
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-04-2017 , 07:31   Re: Need a Vip Menu Plugin
Reply With Quote #5

i am sorry i did write the set_task on wrong way try the new code.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
Old 04-04-2017, 08:31
Famdl
This message has been deleted by Famdl. Reason: Spam:)
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-04-2017 , 09:49   Re: Need a Vip Menu Plugin
Reply With Quote #6

yes if you want to show it after 5.0 secondes then njust change the 3.0 to 5.0 and you can change it to any time you want but it must be with secondes.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 04-05-2017 , 01:12   Re: Need a Vip Menu Plugin
Reply With Quote #7

Quote:
Originally Posted by yas17sin View Post
yes if you want to show it after 5.0 secondes then njust change the 3.0 to 5.0 and you can change it to any time you want but it must be with secondes.
Try to add cvar seconds better
__________________
Қазақстан Республикасы
Snitch is offline
Send a message via Skype™ to Snitch
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-06-2017 , 06:10   Re: Need a Vip Menu Plugin
Reply With Quote #8

yeah, i update my code with cvar .
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
chaves
Senior Member
Join Date: Oct 2011
Old 05-03-2017 , 18:39   Re: Need a Vip Menu Plugin
Reply With Quote #9

Quote:
Originally Posted by yas17sin View Post
i am sorry i did write the set_task on wrong way try the new code.


You can rewrite it to min with the following image weapons all accompanied by:

D.EAGLE
HE
+ 2FLASH
SMOKE
+ COLLETE
+ DEFUSE?

Menu released for both teams, so the VIP can buy CT or TR weapons from whatever side they choose to play.
chaves is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 05-03-2017 , 18:57   Re: Need a Vip Menu Plugin
Reply With Quote #10

you need to be more specific because i didn't understand ?!!
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
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 01:29.


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