Raised This Month: $319 Target: $400
 79%   Almost there!

[NMRiH] Equipment 1.0.1 [2021/09/04]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Plugin ID:
7059
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
    28 
    Plugin Description:
    A improwed weapons and items menu for the NMRiH
    Old 04-23-2020 , 05:14   [NMRiH] Equipment 1.0.1 [2021/09/04]
    Reply With Quote #1

    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");
    Name:  20200423113314_1.jpg
Views: 1059
Size:  31.5 KB Name:  20200423113322_1.jpg
Views: 1087
Size:  37.8 KB Name:  20200423122103_1.jpg
Views: 1067
Size:  45.8 KB Name:  20200423113314_2.jpg
Views: 1051
Size:  21.5 KB
    Name:  20200423122103_2.jpg
Views: 1169
Size:  16.6 KB
    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+
    Plugin sources at GitHub.
    Attached Files
    File Type: zip nmrih_equipment translations.zip (3.6 KB, 239 views)
    File Type: sp Get Plugin or Get Source (nmrih_equipment 1.0.0.sp - 612 views - 18.5 KB)
    File Type: sp Get Plugin or Get Source (nmrih_equipment 1.0.1.sp - 39 views - 18.8 KB)
    __________________

    Last edited by Grey83; 09-04-2021 at 11:43. Reason: Updated plugin: fixed error after game update and bug
    Grey83 is offline
    Groven
    AlliedModders Donor
    Join Date: Apr 2011
    Location: Sweden
    Old 04-23-2020 , 08:20   Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
    Reply With Quote #2

    Looks nice, what is NMRiH?
    __________________
    Groven is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 04-23-2020 , 10:22   Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
    Reply With Quote #3

    Groven, No More Room in Hell
    __________________
    Grey83 is offline
    flawlessmaggot
    New Member
    Join Date: Mar 2021
    Old 05-28-2021 , 20:04   Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
    Reply With Quote #4

    Is there any way to set a limit of spawning guns? Like the past plugin, Weapons menu.

    Last edited by flawlessmaggot; 05-28-2021 at 20:05.
    flawlessmaggot is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 05-29-2021 , 13:12   Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
    Reply With Quote #5

    flawlessmaggot, maybe just use this plugin: https://forums.alliedmods.net/showthread.php?p=2284631
    __________________
    Grey83 is offline
    Shazam
    Junior Member
    Join Date: Feb 2021
    Old 09-02-2021 , 23:18   Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
    Reply With Quote #6

    wich new update 1.11.5, now don't displays the menu to the player who has just spawned.
    Shazam is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 09-03-2021 , 01:49   Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
    Reply With Quote #7

    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
    __________________
    Grey83 is offline
    Darkwob
    Senior Member
    Join Date: Oct 2018
    Location: Turkey
    Old 09-03-2021 , 03:45   Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
    Reply With Quote #8

    Quote:
    Originally Posted by Grey83 View Post
    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.
    __________________
    HTML Code:
    <a href="https://www.gametracker.com/server_info/157.90.180.232:27215/" target="_blank"><img src="https://cache.gametracker.com/server_info/157.90.180.232:27215/b_560_95_1.png" border="0" width="560" height="95" alt=""/></a>
    Darkwob is offline
    Send a message via AIM to Darkwob Send a message via Yahoo to Darkwob Send a message via Skype™ to Darkwob
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 09-03-2021 , 09:27   Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
    Reply With Quote #9

    Darkwob, better there in PM.
    __________________
    Grey83 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 09-04-2021 , 06:20   Re: [NMRiH] Equipment 1.0.0 [2020/04/23]
    Reply With Quote #10

    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
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor
    phoenix0001 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 01:41.


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