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

vip gun menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
farhanhyper
Member
Join Date: Dec 2017
Location: Finland
Old 01-23-2018 , 08:18   vip gun menu
Reply With Quote #1

Hi

I want to show the free vip gun menu each 10 rounds(e.g round 10,20,30...).please rewrite the script for me,thanks.

Quote:
#include <amxmodx>
#include <amxmisc>
#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(PLUGIN, VERSION, AUTHOR)

RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)

cvar_second = register_cvar("Show_Menu_seconds", "5")
//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_additem( menu, "\wAWP \y+ \wDealge \y+ \wiTem Pack \r[VIP]", "", ADMIN_ACCESS)
else
menu_additem( menu, "\dAWP + Dealge + iTem Pack \r[VIP]", "", ADMIN_ACCESS)

if(flags & ADMIN_ACCESS)
menu_additem( menu, "\wFAMAS \y+ \wDealge \y+ \wiTem Pack \r[VIP]", "", ADMIN_ACCESS)
else
menu_additem( menu, "\dFAMAS + Dealge + iTem Pack \r[VIP]", "", ADMIN_ACCESS)

menu_display(id, menu, 0)
}
public VIP_handler(id, menu, item)
{
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(id, CSW_M4A1, 90)
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 35)
}
case 1:
{
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)
}
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")
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_famas")
cs_set_user_bpammo(id, CSW_FAMAS, 30)
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 35)
give_item(id,"weapon_knife")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")


}
}
return PLUGIN_HANDLED;
}
farhanhyper is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 01-23-2018 , 08:26   Re: vip gun menu
Reply With Quote #2

Maybe this is it:
Spoiler

Next time please use "suggestions/requests" section of this forum if you want to receive further help
__________________
retired chump

Last edited by DjSoftero; 01-23-2018 at 08:40.
DjSoftero is offline
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 16:03.


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