AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [NMRiH] Give Weapons v1.1.6 (22 Aug 2014) (https://forums.alliedmods.net/showthread.php?t=232911)

Leonardo 01-06-2014 12:11

[NMRiH] Give Weapons v1.1.6 (22 Aug 2014)
 
28 Attachment(s)
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.


Marcus_Brown001 01-06-2014 17:23

Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
 
Quote:

Originally Posted by Leonardo (Post 2082059)
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.

Leonardo 01-07-2014 06:40

Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
 
just wondering if it requires wait command as longer as it's disaled on my servers.

Marcus_Brown001 01-07-2014 10:10

Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
 
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.

khanhtruong777 01-19-2014 23:55

Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
 
Quote:

Originally Posted by Leonardo (Post 2082059)
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. :)

Leonardo 01-20-2014 03:37

Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
 
Quote:

Originally Posted by khanhtruong777 (Post 2088323)
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.

Marcus_Brown001 01-20-2014 10:03

Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
 
Quote:

Originally Posted by khanhtruong777 (Post 2088323)
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.

Leonardo 01-20-2014 11:02

Re: [NMRiH] Give Weapons v1.0.0 (06 Jan 2014)
 
Quote:

Originally Posted by Marcus_Brown001 (Post 2088503)
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.

khanhtruong777 01-21-2014 09:52

Re: [NMRiH] Give Weapons v1.1.1 (21 Jan 2014)
 
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. :-/

Leonardo 01-21-2014 12:38

Re: [NMRiH] Give Weapons v1.1.1 (21 Jan 2014)
 
Quote:

Originally Posted by khanhtruong777 (Post 2089001)
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.


All times are GMT -4. The time now is 12:51.

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