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

Solved BB VIP/Admin Weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 07-17-2022 , 09:30   BB VIP/Admin Weapons
Reply With Quote #1

Hi.
I want to add this Weapons menu for my basebuilder65 plugin:

PHP Code:
//Weapon Names (For Guns Menu)
static const szWeaponNames[24][23] = { "AK-47 Kalashnikov \y[Free]""M4A1 Carbine \y[Free]""M249 Para Machinegun \r[V.I.P]""G3SG1 Auto-Sniper \r[ADMIN]",
            
"Glock 18C \y[Free]""USP .45 ACP Tactical \y[V.I.P]""Desert Eagle .50 AE \r[ADMIN]" 
How i can add flags for for this [V.I.P] And [ADMIN] Weapons?
And where i put flag? That code is right or not?

There is my sma file.
Attached Files
File Type: sma Get Plugin or Get Source (basebuilder65.sma - 86 views - 83.2 KB)

Last edited by crystal xtreme; 07-20-2022 at 04:13.
crystal xtreme is offline
Uzviseni Bog
Senior Member
Join Date: Jun 2020
Old 07-17-2022 , 13:11   Re: [REQ] BB VIP/Admin Weapons
Reply With Quote #2

PHP Code:
//Weapon Names (For Guns Menu)
static const szWeaponNames[24][23] = { "AK-47 Kalashnikov \y[Free]""M4A1 Carbine \y[Free], "M249 Para Machinegun \r[V.I.P]", "G3SG1 Auto-Sniper \r[ADMIN]",
            "
USP .45 ACP Tactical \y[Free]", "Glock 18C \y[Free]", "Desert Eagle .50 AE \r[V.I.P]" } 
Change to
PHP Code:
//Weapon Names (For Guns Menu)
static const szWeaponNames[24][23] = { "AK-47 Kalashnikov \y[Free]""M4A1 Carbine \y[Free]""M249 Para Machinegun \r[V.I.P]""G3SG1 Auto-Sniper \r[ADMIN]",
            
"Glock 18C \y[Free]""USP .45 ACP Tactical \y[V.I.P]""Desert Eagle .50 AE \r[ADMIN]" 

That marking system is difficult, maybe even impossible to perform

Last edited by Uzviseni Bog; 07-17-2022 at 13:14.
Uzviseni Bog is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 07-17-2022 , 15:19   Re: [REQ] BB VIP/Admin Weapons
Reply With Quote #3

What do you mean
how i add the flags man?
Ex: Machinegun = ADMIN_LEVEL_H
G3SG1 = ADMIN_KICK
USP = ADMIN_LEVEL_H
Deagle = ADMIN_KICK

How i do that?
It's just a text i want to add access.

Last edited by crystal xtreme; 07-17-2022 at 15:19.
crystal xtreme is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 07-17-2022 , 16:50   Re: [REQ] BB VIP/Admin Weapons
Reply With Quote #4

Check this : https://forums.alliedmods.net/showthread.php?t=338481
You can edit the weapons from the config file also there is option for adding a weapon by flags, vip flags and Levels
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 07-18-2022 , 05:16   Re: [REQ] BB VIP/Admin Weapons
Reply With Quote #5

How i connect this to BaseBuilder65? And how to disable bb guns menu?

Last edited by crystal xtreme; 07-18-2022 at 05:16.
crystal xtreme is offline
Uzviseni Bog
Senior Member
Join Date: Jun 2020
Old 07-18-2022 , 09:29   Re: [REQ] BB VIP/Admin Weapons
Reply With Quote #6

PHP Code:
g_pcvar_gunsmenu register_cvar("bb_gunsmenu""1"
Change to
PHP Code:
g_pcvar_gunsmenu register_cvar("bb_gunsmenu""0"
Uzviseni Bog is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 07-19-2022 , 16:01   Re: [REQ] BB VIP/Admin Weapons
Reply With Quote #7

Quote:
Originally Posted by crystal xtreme View Post
How i connect this to BaseBuilder65? And how to disable bb guns menu?
As Uzviseni Bog said there is an cvar for disable it, also mine has API system to add more features and creating custom weapons and using it with another plugins
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache 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 07:14.


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