View Single Post
sir_PaBlo
Member
Join Date: Sep 2020
Location: Urmia
Old 10-29-2020 , 14:17   Re: [CS-1.6] .:: Pro VIP GunMenu ::.
Reply With Quote #16

Quote:
Originally Posted by senator123 View Post
.:: In The Name Of God ::.
|=====================|
|Plugin Name : VIP GunMemu
|Author By : SenaTor
|Version : 1.0
|=====================|

--------------------------------------------------
Access to use plugin : ADMIN_CHAT -----> Flag = i
you can change access by edit "if(flags & ADMIN_CHAT)" in the source
1. use for admins and VIPs : "if(flags & ADMIN_CHAT)"
1. use for all players : you must delet "if(flags & ADMIN_CHAT)"
--------------------------------------------------
How to Put a New Gun :
you can put your new gun in this plugin first you should put a key
(may you want to add key for AWP + deagle + item pack) :
Code:
key = menu_additem( menu, "\d[AWP] + Deagle + iTem Pack \r[Only VIP]", "", ADMIN_ACCESS)
and after that you must put a case for give the gun :
Code:
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_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 );
			}
		}
}
--------------------------------------------------
What time the plugin show for players :
Code:
cvar_second = register_cvar("Show_Menu_seconds", "0")
you can change number 0 to edit the time for example : 1.5 or 0.5
--------------------------------------------------
Fixed : In the latest version when you pick a gun , The plugin left all the guns with C4
and this was big problem because it should not drop C4 .... but in this Version i fixed this bug and change base sources of this plugin and i made the plugin for use
--------------------------------------------------
hi
How to access weapons only for VIPs?
I do not want admins to have access

Last edited by sir_PaBlo; 10-29-2020 at 14:20.
sir_PaBlo is offline