Raised This Month: $ Target: $400
 0% 

GUNMENU


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
itsme1
Member
Join Date: Jun 2006
Location: Birmingham UK
Old 05-08-2024 , 18:03   GUNMENU
Reply With Quote #1

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

#define PLUGIN "Vip GunMenu"
#define VERSION "1.0"
#define AUTHOR "SenaTor"

#define ADMIN_ACCESS ADMIN_CHAT
new bool:imaC4[ 33 ];

new menu;

new cvar_second;

public plugin_init()
{
register_plugin("Gun Menu", "1.0", "26-{indra}")
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)

cvar_second = register_cvar("Show_Menu_seconds", "0")

}
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("[VIP \r[Gun] \wMenu]", "VIP_handler")



if(flags & ADMIN_CHAT)
menu_additem( menu, "\w[M4A1] \y+ \wDeagle \y+ \wiTem Pack \r[Only VIP]", "", ADMIN_ACCESS)
else
menu_additem( menu, "\d[M4A1] + Deagle + iTem Pack \r[Only VIP]", "", ADMIN_ACCESS)



if(flags & ADMIN_CHAT)
menu_additem( menu, "\w[AK47] \y+ \wDeagle \y+ \wiTem Pack \r[Only VIP]", "", ADMIN_ACCESS)
else
menu_additem( menu, "\d[AK47] + Deagle + iTem Pack \r[Only VIP]", "", ADMIN_ACCESS)


if(flags & ADMIN_CHAT)
menu_additem( menu, "\w[AWP] \y+ \wDeagle \y+ \wiTem Pack \r[Only VIP]", "", ADMIN_ACCESS)
else
menu_additem( menu, "\d[AWP] + Deagle + iTem Pack \r[Only VIP]", "", ADMIN_ACCESS)

if(flags & ADMIN_CHAT)
menu_additem( menu, "\w[SG552] \y+ \wP228 \y+ \wiTem Pack \r[Only VIP]", "", ADMIN_ACCESS)
else
menu_additem( menu, "\d[SG522] + P225 + iTem Pack \r[Only VIP]", "", ADMIN_ACCESS)

if(flags & ADMIN_CHAT)
menu_additem( menu, "\w[AUG] \y+ \wUSP \y+ \wiTem Pack \r[Only VIP]", "", ADMIN_ACCESS)
else
menu_additem( menu, "\d[AUG] + USP + iTem Pack \r[Only VIP]", "", ADMIN_ACCESS)

if(flags & ADMIN_CHAT)
menu_additem( menu, "\w[FAMAS] \y+ \wFiveSeven \y+ \wiTem Pack \r[Only VIP]", "", ADMIN_ACCESS)
else
menu_additem( menu, "\d[FAMAS] + FiveSeven + iTem Pack \r[Only VIP]", "", ADMIN_ACCESS)

if(flags & ADMIN_CHAT)
menu_additem( menu, "\w[GALIL] \y+ \wElite \y+ \wiTem Pack \r[Only VIP]", "", ADMIN_ACCESS)
else
menu_additem( menu, "\d[GALIL] + Elite + iTem Pack \r[Only VIP]", "", ADMIN_ACCESS)



menu_display(id, menu, 0)
}
public VIP_handler(id, EXIT, item)
{
if (!is_user_alive(id))
return PLUGIN_HANDLED

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

switch(item)
{
case 0:
{
if( !is_user_alive( id ) )
return PLUGIN_CONTINUE;
else {

if( user_has_weapon( id, CSW_C4 ) && get_user_team( id ) == 1 )
imaC4[ id ] = true;
else
imaC4[ id ] = false;

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");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
give_item(id, "item_kevlar");
give_item(id, "item_assaultsuit");

if( imaC4[ id ] ) {

give_item( id, "weapon_c4" );
cs_set_user_plant( id );
}
}
}
case 1:
{
if( !is_user_alive( id ) )
return PLUGIN_CONTINUE;
else {

if( user_has_weapon( id, CSW_C4 ) && get_user_team( id ) == 1 )
imaC4[ id ] = true;
else
imaC4[ id ] = false;

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");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
give_item(id, "item_kevlar");
give_item(id, "item_assaultsuit");

if( imaC4[ id ] ) {

give_item( id, "weapon_c4" );
cs_set_user_plant( id );
}
}
}
case 2:
{
if( !is_user_alive( id ) )
return PLUGIN_CONTINUE;
else {

if( user_has_weapon( id, CSW_C4 ) && get_user_team( id ) == 1 )
imaC4[ id ] = true;
else
imaC4[ id ] = false;

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");
give_item(id, "item_kevlar");
give_item(id, "item_assaultsuit");

if( imaC4[ id ] ) {

give_item( id, "weapon_c4" );
cs_set_user_plant( id );
}
}
}
case 3:
{
if( !is_user_alive( id ) )
return PLUGIN_CONTINUE;
else {

if( user_has_weapon( id, CSW_C4 ) && get_user_team( id ) == 1 )
imaC4[ id ] = true;
else
imaC4[ id ] = false;

strip_user_weapons( id );
give_item(id, "weapon_sg552");
cs_set_user_bpammo(id, CSW_SG552, 90);
give_item(id, "weapon_p228");
cs_set_user_bpammo(id, CSW_P228, 52);
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");
give_item(id, "item_kevlar");
give_item(id, "item_assaultsuit");

if( imaC4[ id ] ) {

give_item( id, "weapon_c4" );
cs_set_user_plant( id );
}
}
}
case 4:
{
if( !is_user_alive( id ) )
return PLUGIN_CONTINUE;
else {

if( user_has_weapon( id, CSW_C4 ) && get_user_team( id ) == 1 )
imaC4[ id ] = true;
else
imaC4[ id ] = false;

strip_user_weapons( id );
give_item(id, "weapon_aug");
cs_set_user_bpammo(id, CSW_AUG, 90);
give_item(id, "weapon_usp");
cs_set_user_bpammo(id, CSW_USP, 24);
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");
give_item(id, "item_kevlar");
give_item(id, "item_assaultsuit");

if( imaC4[ id ] ) {

give_item( id, "weapon_c4" );
cs_set_user_plant( id );
}
}
}
case 5:
{
if( !is_user_alive( id ) )
return PLUGIN_CONTINUE;
else {

if( user_has_weapon( id, CSW_C4 ) && get_user_team( id ) == 1 )
imaC4[ id ] = true;
else
imaC4[ id ] = false;

strip_user_weapons( id );
give_item(id, "weapon_famas");
cs_set_user_bpammo(id, CSW_FAMAS, 90);
give_item(id, "weapon_fiveseven");
cs_set_user_bpammo(id, CSW_FIVESEVEN, 40);
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");
give_item(id, "item_kevlar");
give_item(id, "item_assaultsuit");

if( imaC4[ id ] ) {

give_item( id, "weapon_c4" );
cs_set_user_plant( id );
}
}
}
case 6:
{
if( !is_user_alive( id ) )
return PLUGIN_CONTINUE;
else {

if( user_has_weapon( id, CSW_C4 ) && get_user_team( id ) == 1 )
imaC4[ id ] = true;
else
imaC4[ id ] = false;

strip_user_weapons( id );
give_item(id, "weapon_galil");
cs_set_user_bpammo(id, CSW_GALIL, 90);
give_item(id, "weapon_elite");
cs_set_user_bpammo(id, CSW_ELITE, 40);
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");
give_item(id, "item_kevlar");
give_item(id, "item_assaultsuit");

if( imaC4[ id ] ) {

give_item( id, "weapon_c4" );
cs_set_user_plant( id );
}
}
}


}
return PLUGIN_HANDLED;
}
itsme1 is offline
itsme1
Member
Join Date: Jun 2006
Location: Birmingham UK
Old 05-08-2024 , 18:07   Re: GUNMENU
Reply With Quote #2

Hi

Can someone please add a auto re-buy option for every round and the a say command /gm too re-open the gunmenu too stop the auto re-buy.

Also can you point out where to change the amount smokes grenades too 2 not 1, and then i can see why i missed it.

Thanks

Thanks
itsme1 is offline
itsme1
Member
Join Date: Jun 2006
Location: Birmingham UK
Old 05-13-2024 , 13:51   Re: GUNMENU
Reply With Quote #3

Hi

Someone must know this ? please help...

Thanks
itsme1 is offline
itsme1
Member
Join Date: Jun 2006
Location: Birmingham UK
Old 05-15-2024 , 11:33   Re: GUNMENU
Reply With Quote #5

sorry but thats not helped at all.
itsme1 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2024 , 23:08   Re: GUNMENU
Reply With Quote #6

Quote:
Originally Posted by itsme1 View Post
sorry but thats not helped at all.
He's giving you advice to make your post less unappealing. It may help getting people to help out.

Also, it's in the wrong subforum so that doesn't help.
__________________

Last edited by fysiks; 05-15-2024 at 23:09.
fysiks is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 05-17-2024 , 14:28   Re: GUNMENU
Reply With Quote #7

with that attitude you will receive help faster, but wait sitting because you will get tired.
__________________
mlibre is offline
itsme1
Member
Join Date: Jun 2006
Location: Birmingham UK
Old 05-19-2024 , 17:07   Re: GUNMENU
Reply With Quote #8

ok
itsme1 is offline
PashaKorobok
New Member
Join Date: May 2024
Old 06-06-2024 , 15:13   Re: GUNMENU
Reply With Quote #9

Quote:
Originally Posted by itsme1 View Post
#include <amxmodx>
The weapons in the game are cool, but have you ever tried to shoot with a real weapon? I'm sure not. But these are completely different emotions and an adrenaline rush. I recommend visiting store GunBroker reviews for all those who have never encountered a real weapon in life. Believe me, when you arrive at the shooting range, you will forget about all your problems and feel energized.
}

thanks for an advice
PashaKorobok 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 06:18.


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