Raised This Month: $ Target: $400
 0% 

DoD:S Admin Weapons v0.4 Updated 5/2/2011


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Lebson506th
Veteran Member
Join Date: Jul 2008
Plugin ID:
521
Plugin Version:
0.4
Plugin Category:
Fun Stuff
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    43 
    Plugin Description:
    Gives admins the ability to get any weapon they want
    Old 08-24-2008 , 16:06   DoD:S Admin Weapons v0.4 Updated 5/2/2011
    Reply With Quote #1

    DoD:S Admin Weapons
    by Lebson506th

    Description

    This plugin was inspired by a plugin I saw for DoD:S a long time ago. Don't remember what it was called or who it was by, and I couldn't find it. So I made this one.

    This plugin allows admins with the "t" (ADMFLAG_CUSTOM6) flag to get any weapon in the game. Automatically gives full ammo for the weapon selected including rifle grenades for the Garand and K98.

    This plugin also allows admins to give any weapon to any player, or let any player decide which weapon they want. It also allows admin to remove 1 or all of any player's weapons.

    The only limitation right now is that the user can only get 1 of each thrown grenade at a time. However, because it is possible to get the grenades of the other team as well, you can get a total of 2 of each. (IE, US and German frag grenade = 2 frag grenades total)

    Commands

    sm_weapon - Brings up the menu that allows admin to get any weapon.
    sm_weapon "Name" - Brings up the menu on the named client's side that allows them to choose the weapon they want.
    sm_giveweapon "Name" - Brings up the menu that allows admin to choose which weapon to give a player.
    sm_removeweapons "Name" - Removes all weapons from a given player.
    sm_removeweapon "Name" <slot# (0-3)> - Removes a weapon from the given slot from a given player.

    Special Thanks
    • DJ Tsunami for helping me fix a few issues while I was developing this in the IRC channel.
    • monkie for suggesting the translation and menu integration, beta testing the plugin for me, and translating the plugin into Chinese.
    • FeuerSturm for showing me the RemoveEdict bug.
    • GoD-Tony for writing out the fix for the translation issue.
    Installation Instructions
    1. Copy dod_adminweapon.smx to addons/sourcemod/plugins
    2. Copy adminweapon.phrases.txt to addons/sourcemod/translations
    3. Using RCON, do "sm plugins load dod_adminweapon"
    Current Languages
    • English
    • Chinese
    Change Log

    5/2/2011 - v0.4
    • Fixed translations potentially acting weirdly.
    11/1/2008 - v0.3
    • Added translations.
    • Added commands to admin menu by default.
    • Fixed a bug when removing weapons that could cause server crashes after a while.
    8/24/2008 - v0.2
    • Added sm_giveweapon "Name" that lets an admin choose what weapon to give to a player.
    • Added sm_weapon "Name" that opens the weapon menu on the given player so they can choose.
    • Added sm_removeweapons "Name" that removes all the weapons of a given player.
    • Added sm_removeweapon "Name" <slot# (0-3)> that removes the weapon in the given slot of the given player.
    8/24/2008 - v0.1
    • Initial release
    Attached Files
    File Type: txt adminweapon.phrases.txt (1.9 KB, 2860 views)
    File Type: sp Get Plugin or Get Source (dod_adminweapon.sp - 3118 views - 20.8 KB)
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)

    Last edited by Lebson506th; 05-02-2011 at 10:28. Reason: Translated to Chinese
    Lebson506th is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 08-25-2008 , 00:18   Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
    Reply With Quote #2

    8/24/2008 - v0.2
    • Added sm_giveweapon "Name" that lets an admin choose what weapon to give to a player.
    • Added sm_weapon "Name" that opens the weapon menu on the given player so they can choose.
    • Added sm_removeweapons "Name" that removes all the weapons of a given player.
    • Added sm_removeweapon "Name" <slot# (0-3)> that removes the weapon in the given slot of the given player.
    Cause so many people seemed interested in it, I thought I would make it better.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)

    Last edited by Lebson506th; 08-25-2008 at 08:59.
    Lebson506th is offline
    ProjectManhatten
    SourceMod Donor
    Join Date: May 2005
    Location: LA
    Old 08-27-2008 , 23:10   Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
    Reply With Quote #3

    OMG THIS IS AWESOME! I've been waiting for it for sooo long... You rock!
    __________________


    Last edited by ProjectManhatten; 08-27-2008 at 23:16.
    ProjectManhatten is offline
    Send a message via AIM to ProjectManhatten Send a message via MSN to ProjectManhatten Send a message via Yahoo to ProjectManhatten
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 08-28-2008 , 09:44   Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
    Reply With Quote #4

    Quote:
    Originally Posted by ProjectManhatten View Post
    OMG THIS IS AWESOME! I've been waiting for it for sooo long... You rock!

    Thanks =)


    I made an adminmenu_custom.txt that adds these commands to a "Admin Weapon" category in the menu.
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)

    Last edited by Lebson506th; 08-29-2008 at 15:44.
    Lebson506th is offline
    menotyou
    Member
    Join Date: Jul 2008
    Old 08-28-2008 , 21:46   Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
    Reply With Quote #5

    can i use this for non admin player like in DoD Weapons Mod 2.0 http://www.dodplugins.net/forums/showthread.php?t=699 and if so how?
    __________________
    menotyou is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 08-28-2008 , 22:02   Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
    Reply With Quote #6

    sm_weapons "Name" Lets them choose.

    If you want it so everyone can use the sm_weapon command, remove the "ADMFLAG_CUSTOM6" part of each command you want them to have in OnPluginStart()
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    menotyou
    Member
    Join Date: Jul 2008
    Old 08-30-2008 , 00:59   Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
    Reply With Quote #7

    for puplic use with mod i use this key for non-admin
    bind ] "sm_weapon"
    Almost like DoD Weapons Mod 2.0
    http://www.dodplugins.net/forums/showthread.php?t=699
    Soo close
    Attached Files
    File Type: smx dod_adminweapon.smx (6.0 KB, 807 views)
    __________________

    Last edited by menotyou; 08-30-2008 at 13:18. Reason: stuff
    menotyou is offline
    mgbadboyz
    New Member
    Join Date: Sep 2008
    Old 09-03-2008 , 17:39   Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
    Reply With Quote #8

    Great plugin. I got the menu to work but when i choose a weapon nothing happens. Any reason??
    mgbadboyz is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 09-03-2008 , 18:03   Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
    Reply With Quote #9

    Any errors in the logs?
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    mgbadboyz
    New Member
    Join Date: Sep 2008
    Old 09-03-2008 , 18:07   Re: DoD:S Admin Weapons v0.2 Updated 8/24/2008
    Reply With Quote #10

    only thing i noticed was this in console when i try to remove a weapon
    09/03/2008 - 16:056: [SM] Native "GetPlayerWeaponSlot" reported: "Weapon_GetSlot" not supported by this mod
    L 09/03/2008 - 16:056: [SM] Debug mode is not enabled for "dod_adminweapon.smx"
    L 09/03/2008 - 16:056: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 5 on
    does this mean my sourcemod version is to old?
    mgbadboyz 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 03:59.


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