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

[NMRiH] Give Weapons v1.1.6 (22 Aug 2014)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Plugin ID:
4032
Plugin Version:
1.1.6-20140822
Plugin Category:
General Purpose
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
    27 
    Plugin Description:
    Give weapons and items.
    Old 01-06-2014 , 12:11   [NMRiH] Give Weapons v1.1.6 (22 Aug 2014)
    Reply With Quote #1

    NoMorePlugins studio presents:

    Features:
    * Give items w/o menus (so you can bind it);
    * Spawn items in front of you.
    How to configure?
    PHP Code:
    // Plugin Version ConVar
    //nmp_giveweapons_version

    // Hide admin activity.
    nmp_gw_silent 1 
    How to use?
    PHP Code:
    // Give weapon or item
    sm_give <targets> <weapon|item>

    // Spawn weapon or item in front of players
    sm_spawni <weapon|item> <targets>

    // Spawn weapon or item in front of you (must be in-game)
    sm_spawni <weapon|item>

    // Spawn weapon or item at coords
    sm_spawni <weapon|item> <x> <y> <z>

    // Reload config file
    sm_gw_reload 
    List of items:
    PHP Code:
    // Pistols
    fa_1911 fa_glock17 fa_m29fs fa_mkiii fa_sw686

    // Shotguns
    fa_500a fa_870 fa_sv10 fa_superx3 fa_winchester1892

    // Rifles
    fa_1022 fa_cz858 fa_m16a4 fa_sako85 fa_sks

    // Melee
    me_axe_fire me_bat_metal me_chainsaw me_crowbar me_fists me_hatchet me_kitknife me_machete me_shovel me_sledge me_wrench

    // Explosive
    exp_grenade exp_molotov exp_tnt

    // Tools
    tool_barricade tool_extinguisher tool_flare_gun tool_welder

    // Meds
    item_bandages item_first_aid item_pills

    // Other
    item_maglite item_walkietalkie item_zippo 
    ToDo list:
    * Spawn/give menu (done);
    * Spawn ammoboxes.
    Changelogs:
    Code:
    22.08.2014:
      Version 1.1.6:
        Added FN FAL.
    26.02.2014:
      Version 1.1.5:
        More little bug fixes.
    07.02.2014:
      Version 1.1.4:
        Minor code changes.
    23.01.2014:
      Version 1.1.3:
        Updated adminmenu so current client (menu opener) would be always second in the list (if alive);
        Updated translations.
    21.01.2014:
      Version 1.1.2:
        Added compiler option to enable adminmenu category:
          Comment ADMINMENU_NEW_CATEGORY out to use "PlayerCommands";
          Uncomment ADMINMENU_NEW_CATEGORY to make a new category (default).
      Version 1.1.1:
        Spawn/give item menu doesn't disappear;
        Fixed some sm_spawni command issues.
    20.01.2014:
      Version 1.1.0:
        Added spawn/give item menu;
        Added optional argument for sm_spawni to spawn items in front of another players.
    06.01.2014:
      Version 1.0.0:
        Initial release.
    Attached Files
    File Type: txt nmp_giveweapons.phrases.txt (6.8 KB, 1481 views)
    File Type: txt nmrih_items_data.txt (7.1 KB, 1782 views)
    File Type: sp Get Plugin or Get Source (nmp_giveweapons.sp - 3149 views - 26.2 KB)
    __________________

    Last edited by Leonardo; 08-22-2014 at 03:18.
    Leonardo is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 01-06-2014 , 17:23   Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
    Reply With Quote #2

    Quote:
    Originally Posted by Leonardo View Post
    Give items w/o menus (so you can bind it);
    Just an f.y.i. you can still bind using menus. Just not too many people know how to.
    Marcus_Brown001 is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 01-07-2014 , 06:40   Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
    Reply With Quote #3

    just wondering if it requires wait command as longer as it's disaled on my servers.
    __________________
    Leonardo is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 01-07-2014 , 10:10   Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
    Reply With Quote #4

    I don't believe it does. I have binds for it on my server for some key items, and I don't use wait commands.
    Marcus_Brown001 is offline
    khanhtruong777
    Junior Member
    Join Date: Apr 2013
    Location: Vietnam
    Old 01-19-2014 , 23:55   Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
    Reply With Quote #5

    Quote:
    Originally Posted by Leonardo View Post
    ToDo list:
    * Spawn/give menu;
    * Spawn ammoboxes.
    Yes, please make give menu, I can't give an item to players who use Unicode name or special characters (Chinese, Thai,...). I suggest to choose an item first, then choose a player in the list to give it to him (same as in admin menu). It will be helpful. Thanks.
    Spawning ammoboxes may not be necessary bcos we got nmp_fia plugin.
    __________________

    khanhtruong777 is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 01-20-2014 , 03:37   Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
    Reply With Quote #6

    Quote:
    Originally Posted by khanhtruong777 View Post
    Spawning ammoboxes may not be necessary bcos we got nmp_fia plugin.
    there's always some folks asking admins "GIMME AMMO PLZ ADMIN PLZ AMMO I NED DAT", so I'll keep on it.
    *menu is coming

    EDIT:
    *menu has come. check out Player Commands section.
    __________________

    Last edited by Leonardo; 01-20-2014 at 08:58.
    Leonardo is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 01-20-2014 , 10:03   Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
    Reply With Quote #7

    Quote:
    Originally Posted by khanhtruong777 View Post
    I can't give an item to players who use Unicode name or special characters (Chinese, Thai,...).
    The sm_give command uses ProcessTargetString, this means that you can supply a variety of different targets and still get the same result. So, for example, if a player has a unique name that you cannot copy, or simply don't want to, you can supply a userid (you gather these by using the status command in console). If you wanted to give items to everyone at once, you could use the trigger @all. There is a lot you can do with this. You shouldn't have a problem targeting someone.
    Marcus_Brown001 is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 01-20-2014 , 11:02   Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
    Reply With Quote #8

    Quote:
    Originally Posted by Marcus_Brown001 View Post
    The sm_give command uses ProcessTargetString, this means that you can supply a variety of different targets and still get the same result. So, for example, if a player has a unique name that you cannot copy, or simply don't want to, you can supply a userid (you gather these by using the status command in console). If you wanted to give items to everyone at once, you could use the trigger @all. There is a lot you can do with this. You shouldn't have a problem targeting someone.
    or use double quotes: "мультибайтовый_текст" (multibyte_text)
    also you can use part of target name: player named "игрок вадим", targeting by "вад".
    sadly, it case sensitive.
    Leonardo is offline
    khanhtruong777
    Junior Member
    Join Date: Apr 2013
    Location: Vietnam
    Old 01-21-2014 , 09:52   Re: [NMRiH] Give Weapons v1.1.1 (21 Jan 2014)
    Reply With Quote #9

    I tried turning SilentAdmin on and gave a weapon to myself, the plugin showed "[NMP-GW] Gave '#Weapon_fa_cz858_short' to [VN]Kain" instead of CZech 858. :-/
    __________________

    khanhtruong777 is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 01-21-2014 , 12:38   Re: [NMRiH] Give Weapons v1.1.1 (21 Jan 2014)
    Reply With Quote #10

    Quote:
    Originally Posted by khanhtruong777 View Post
    I tried turning SilentAdmin on and gave a weapon to myself, the plugin showed "[NMP-GW] Gave '#Weapon_fa_cz858_short' to [VN]Kain" instead of CZech 858. :-/
    *updated without version bump.
    Leonardo 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 12:42.


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