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

[CS:S] Advanced GunGame Give


Post New Thread Reply   
 
Thread Tools Display Modes
Author
avitardotnet
Junior Member
Join Date: Feb 2009
Location: CA, USA
Plugin ID:
1790
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    [CS:S] Advanced GunGame Give
    Old 07-09-2010 , 21:49   [CS:S] Advanced GunGame Give
    Reply With Quote #1

    This REQUIRES SourceMod GunGame to be installed. The advantages of using this GunGame Give plugin is that it requires Zero Configuration. This is because it uses the native GunGame plugins functions to read what gun is the current players level weapon.

    Features:
    • Zero Configuration - Even for custom weapon configurations, random gun game, reverse gun game, and normal gun game configurations without and configuration.
    • Automated Player Instructions to players telling them how to use the gun game command.
    • Defaults to 3 uses per spawn but is configurable.
    • Works with all weapons
    • Safe -- Deny's use on knife, HE grenade level, and when dead.
    CVARs:
    • sm_give -- !give or /give in chat to strip your weapons and get your current levels gun.
    • sm_gungame_give_uses -- default per spawn
    Credits:
    • altex for Developing Gun Game
    • MistaGee JailMod for StripWeaponsButKnife functionality
    • bobbobagan for making an initial !give command for sourcemod gungame
    Environment:

    This may not compile in the forums because it uses natives from sm gun game.
    • Known to work with SourceMod 1.3.4-Dev
    Attached Files
    File Type: sp Get Plugin or Get Source (gungame_give.sp - 1240 views - 8.9 KB)
    avitardotnet is offline
    Ph03n1X
    Member
    Join Date: Apr 2010
    Location: Latvia, Riga
    Old 07-10-2010 , 05:11   Re: [CS:S] Advanced GunGame Give
    Reply With Quote #2

    This plugin do the same, but it has smaller and simpler code.
    Ph03n1X is offline
    marks
    Junior Member
    Join Date: Apr 2010
    Old 07-24-2010 , 12:30   Re: [CS:S] Advanced GunGame Give
    Reply With Quote #3

    "Plugin failed to compile! Please try contacting the author. "

    Last edited by marks; 07-24-2010 at 12:33.
    marks is offline
    avitardotnet
    Junior Member
    Join Date: Feb 2009
    Location: CA, USA
    Old 07-26-2010 , 01:27   Re: [CS:S] Advanced GunGame Give
    Reply With Quote #4

    Quote:
    Originally Posted by marks View Post
    "Plugin failed to compile! Please try contacting the author. "
    You missed the note in the original post:

    Quote:
    Originally Posted by avitardotnet
    This may not compile in the forums because it uses natives from sm gun game.
    You need to manually compile this plugin using a local repository that also has the full gun game mod script's in the script directory.

    This holds true for all plugins that tie into another plugin.
    avitardotnet is offline
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 07-26-2010 , 02:08   Re: [CS:S] Advanced GunGame Give
    Reply With Quote #5

    I agree. This method is old. I have updated my SM GG Give plugin to use a much simplier code, you should check it out.

    The only reason why I had not done this earlier was because there was a bug with the natives for SM GG which are now fixed.

    I would recommend you go have a look at the updated code or better yet save your effort and just use Ph03n1X's version since they do the same thing. I should have thought of this feature myself...
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    SumoCow
    Member
    Join Date: Aug 2010
    Location: Richardson, TX
    Old 08-12-2010 , 03:43   Re: [CS:S] Advanced GunGame Give
    Reply With Quote #6

    what files does it create after installation? I am trying to remove it from my server to redo it, but cannot find all the files it has installed to do so.
    SumoCow is offline
    icgzane
    Junior Member
    Join Date: Oct 2010
    Location: Belgium
    Old 10-26-2010 , 18:14   Re: [CS:S] Advanced GunGame Give
    Reply With Quote #7

    hi,
    i got my own publicserver (gungame) now and i wonder if it still is possible to set !give or /give to unlimited? is installed the plug in but i don't see an .cfg file where i can adjust the giveplugin. or do i have to add the commends by myself? and where?

    Thx ICGZane
    icgzane is offline
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 10-27-2010 , 13:02   Re: [CS:S] Advanced GunGame Give
    Reply With Quote #8

    Use my original version which is unlimited by default:
    https://forums.alliedmods.net/showpo...&postcount=701

    Or try setting sm_gungame_give_uses to 0 or -1 not entirely sure if it will work though
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    LumiStance
    AlliedModders Donor
    Join Date: Jan 2009
    Location: Northern California
    Old 12-11-2010 , 05:11   Re: [CS:S] Advanced GunGame Give
    Reply With Quote #9

    There is a memory leak (unused printf argument) on line 78 of version 1.0 in the original post.
    I have PM'd the author, but he was last on in 2010-08/16.
    Attached is a fix.

    I changed this line:
    PrintToChat(client, "\x04[SM] Type !give in console to get your current weapon.",g_gungame_give_uses);

    To this:
    PrintToChat(client, "\x04[SM] Type !give in console to get your current weapon."); //,g_gungame_give_uses);

    This plugin needs the Gun Game include file to compile.
    Attached is a precompiled version. The forum compiler does not have the include, and will fail if you use the "Get Plugin" link.
    Attached Files
    File Type: sp Get Plugin or Get Source (gungame_give.sp - 480 views - 8.8 KB)
    File Type: smx gungame_give.smx (4.4 KB, 547 views)
    __________________

    Last edited by LumiStance; 12-11-2010 at 05:16.
    LumiStance is offline
    LoofaahGFX
    New Member
    Join Date: Oct 2012
    Old 10-18-2012 , 03:57   Re: [CS:S] Advanced GunGame Give
    Reply With Quote #10

    what is the rcon command to disable gg_give.smx

    Last edited by LoofaahGFX; 10-18-2012 at 03:58.
    LoofaahGFX 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 07:57.


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