AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Solved BB VIP/Admin Weapons (https://forums.alliedmods.net/showthread.php?t=338617)

crystal xtreme 07-17-2022 09:30

BB VIP/Admin Weapons
 
1 Attachment(s)
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.

Uzviseni Bog 07-17-2022 13:11

Re: [REQ] BB VIP/Admin Weapons
 
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

crystal xtreme 07-17-2022 15:19

Re: [REQ] BB VIP/Admin Weapons
 
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.

Supremache 07-17-2022 16:50

Re: [REQ] BB VIP/Admin Weapons
 
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

crystal xtreme 07-18-2022 05:16

Re: [REQ] BB VIP/Admin Weapons
 
How i connect this to BaseBuilder65? And how to disable bb guns menu?

Uzviseni Bog 07-18-2022 09:29

Re: [REQ] BB VIP/Admin Weapons
 
PHP Code:

g_pcvar_gunsmenu register_cvar("bb_gunsmenu""1"

Change to
PHP Code:

g_pcvar_gunsmenu register_cvar("bb_gunsmenu""0"


Supremache 07-19-2022 16:01

Re: [REQ] BB VIP/Admin Weapons
 
Quote:

Originally Posted by crystal xtreme (Post 2784055)
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


All times are GMT -4. The time now is 06:24.

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