AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [NMRiH] Equipment 1.0.1 [2021/09/04] (https://forums.alliedmods.net/showthread.php?t=323586)

Grey83 04-23-2020 05:14

[NMRiH] Equipment 1.0.1 [2021/09/04]
 
9 Attachment(s)
Name: Equipment

Description: A menu with which players can get weapons, tools, medicines and more.
Console variables allow you to configure access to various categories of things. You can also configure what information about the item will be visible in the menu.
Menu can be called either by a command !guns or by a combination of keys 1 + 2 ("+inventory" and "+ammoinv"). Additional information about carry-over items can be turned on by a combination of keys C + 2 ("+compass" and "+ammoinv");
Attachment 180972 Attachment 180973 Attachment 180977 Attachment 180976
Attachment 180978
Full screenshots: fist, second and third

CVars:
  • sm_equipment_info - Add info about items: 1 - weight, 2 - ammo, 4 - kill cost (bullets or stamina)
  • sm_equipment_spawn - Show menu for a player who has just been spawned
  • sm_equipment_players - Allowed types for players
    *Types of items: 1 - pistols, 2 - rifles, 4 - semiauto, 8 - auto, 16 - shotguns, 32 - melee, 64 - tools, 128 - medicines, 256 - explosives, 512 - ammo
    *E.g. enable all exept explosives: 1 + 2 + 4 + 8 + 16 +32 + 64 + 128 + 512 = 767
  • sm_equipment_admins - Allowed types for admins
    *If any type of items is disabled for administrators, but enabled for players, then administrators can also get these type.

You can also change the order of the items in the category menu: just swap the values ​​in the ORDER array (at line 121).

Installation: Place compiled plugin (nmrih_equipment.smx) into the plugins folder (../addons/sourcemod/plugins/).
Extract the translation files from nmrih_equipment translations.zip to the translations folder (../addons/sourcemod/translations/).

Changes in v1.0.1 [2021/09/04]:
  • Fixed bug, when plugin gave items to dead players.
  • Fixed not displaying the menu for a player who has just been spawned regardless of the corresponding convar in NMRiH v1.11.5.
  • Fixed compilation error when using SM1.11+
Changes in v1.0.1 [2021/11/20]:
  • Fixed error "Invalid client index"
Plugin sources at GitHub.

Groven 04-23-2020 08:20

Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
 
Looks nice, what is NMRiH?

Grey83 04-23-2020 10:22

Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
 
Groven, No More Room in Hell

flawlessmaggot 05-28-2021 20:04

Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
 
Is there any way to set a limit of spawning guns? Like the past plugin, Weapons menu.

Grey83 05-29-2021 13:12

Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
 
flawlessmaggot, maybe just use this plugin: https://forums.alliedmods.net/showthread.php?p=2284631

Shazam 09-02-2021 23:18

Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
 
wich new update 1.11.5, now don't displays the menu to the player who has just spawned.

Grey83 09-03-2021 01:49

Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
 
Shazam, try change if(bSpawn && (client = GetClientOfUserId(event.GetInt("userid"))) && IsPlayerAlive(client)) ==> if(bSpawn && (client = GetClientOfUserId(event.GetInt("userid"))))
https://github.com/Grey83/nmrih_equi...ipment.sp#L383

Darkwob 09-03-2021 03:45

Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
 
Quote:

Originally Posted by Grey83 (Post 2756834)
Shazam, try change if(bSpawn && (client = GetClientOfUserId(event.GetInt("userid"))) && IsPlayerAlive(client)) ==> if(bSpawn && (client = GetClientOfUserId(event.GetInt("userid"))))
https://github.com/Grey83/nmrih_equi...ipment.sp#L383

I need to consult you about the like of this plugin. I sent a friend request on steam.

Grey83 09-03-2021 09:27

Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
 
Darkwob, better there in PM.

phoenix0001 09-04-2021 06:20

Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
 
1 bug found

When the character is alive, enter the command to brush things (! Guns), pop-up menu

The menu interface has not been closed

At this time, players can brush things after death

What you brush out can be thrown out

Then you can brush and throw things without limit

-----------------------------------------------------------------------------------------------------------------

If the player is dead and typing a command (! Guns), is not pop-up menu, is not able to use this BUG

Enter commands while still alive (! Guns), and then in death, you can use this BUG.

videotape
http://4808804.cn/nmrih/1.mp4


All times are GMT -4. The time now is 11:44.

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