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

[ANY] Anti Guns Spam


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Plugin ID:
2395
Plugin Version:
v1.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    21 
    Plugin Description:
    This plugin prevent weapon spamming
    Old 06-24-2011 , 12:46   [ANY] Anti Guns Spam
    Reply With Quote #1

    Curent Version: v1.2


    Description:

    This plugin remove all weapon created when it has exceeded the maximum value allowed weapons on the ground, this prevent guns spamming. This is the solution to the problem of jail maps such as:
    "ba_jail_electric_razor_v7_rc1" , "ba_jail_ultimate" and more


    Commands:

    sm_gunsinmap - show the number of guns on the ground (!gunsinmap in chat)


    CVar's:

    sm_antigunspam_max <0-infinite> | The max number of guns on the ground allowed. Exceeded this value, the weapons created are deleted. Default: 40


    Requirements:
    SDK Hooks


    To install:

    put .smx file in addons/sourcemod/plugins
    Install SDKHooks

    Changelog

    Version 1.0
    -code released
    Version 1.1
    -Fixed a bug that caused some players to stay disarmed - now fixed
    Version 1.2
    -Fixed a bug that deleted any default guns on the group of the map in round start - now fixed
    -Added a new command for show the number of guns on the ground

    Credits:
    Scripter: Franc1sco steam: franug


    Donations (optional):

    If you apreciate my work, you can donate me via paypal or with a trade offer


    Download:

    Main repository
    Direct download
    Code changes
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 12-20-2015 at 08:22.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 07-04-2011 , 07:43   Re: [ANY] Anti Guns Spam
    Reply With Quote #2

    New version!

    Version 1.1
    Fixed a bug that caused some players to stay disarmed
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 07-04-2011 , 11:59   Re: [ANY] Anti Guns Spam
    Reply With Quote #3

    New version!

    Version 1.2
    -Fixed a bug that deleted any default guns on the group of the map in round start
    -Added a new command for show the number of guns on the ground
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    spelworm
    Senior Member
    Join Date: Mar 2007
    Old 10-09-2011 , 20:31   Re: [ANY] Anti Guns Spam
    Reply With Quote #4

    Nice plugin thanks
    spelworm is offline
    peteanbe
    SourceMod Donor
    Join Date: Mar 2007
    Location: Norway
    Old 11-18-2011 , 00:36   Re: [ANY] Anti Guns Spam
    Reply With Quote #5

    This is just a plugin im looking for on my Zombie:Reloaded server. Prevents gunspam when you have re-spawn able on your server, so the map wont be filled up with guns.
    I have added this plugin, and it seems to work.
    But there is 1 problem with sm_antigunspam_max.
    I set the sm_antigunspam_max to 10 in my server.cfg. But the map still dosnt remove everything when there is like 30 guns dropped, is only removes like 14-15 guns.

    Pete
    __________________
    peteanbe is offline
    Send a message via Skype™ to peteanbe
    C0nw0nk
    Senior Member
    Join Date: May 2011
    Location: United Kingdom
    Old 06-06-2012 , 19:18   Re: [ANY] Anti Guns Spam
    Reply With Quote #6

    Very good plugin works like a charm in HL2M But can the same be done for NPC's


    EDIT :// Does not work in tf2....

    Last edited by C0nw0nk; 06-17-2012 at 08:29.
    C0nw0nk is offline
    Send a message via MSN to C0nw0nk
    vodka00
    Veteran Member
    Join Date: Jun 2012
    Location: Los Angeles
    Old 11-24-2012 , 13:51   Re: [ANY] Anti Guns Spam
    Reply With Quote #7

    The command sm_antigunspam_max seems to not be working properly? I set it to 20 but there are more guns than that.
    vodka00 is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 11-24-2012 , 13:59   Re: [ANY] Anti Guns Spam
    Reply With Quote #8

    Quote:
    Originally Posted by vodka00 View Post
    The command sm_antigunspam_max seems to not be working properly? I set it to 20 but there are more guns than that.
    Use sm_gunsinmap for see the current number of weapon on ground

    If a weapon are created exceeding this value, then after 5 seconds if weapon are on ground the weapon will be deleted.

    you can get in a vending for spamm weapons (for example in ba_jail_electric_razor_v7_rc1 ) and the new weapons will be deleted (prevent lag)

    summary: this delete the new weapons created after exceeded the value
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 11-24-2012 at 14:00.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    vodka00
    Veteran Member
    Join Date: Jun 2012
    Location: Los Angeles
    Old 11-24-2012 , 15:57   Re: [ANY] Anti Guns Spam
    Reply With Quote #9

    Yes, the number was 35, it stayed like that. But the guns did delete themselves, just not after 20 like I set it in the cvar.
    vodka00 is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 01-15-2013 , 06:07   Re: [ANY] Anti Guns Spam
    Reply With Quote #10

    Quote:
    Originally Posted by vodka00 View Post
    Yes, the number was 35, it stayed like that. But the guns did delete themselves, just not after 20 like I set it in the cvar.
    I checked the code and I donīt see nothing of it bug.


    check that you have wrote correctly the cvar


    Remember that only weapons without owner will be deleted (default weapons of map not included)
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 01-15-2013 at 06:09.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    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 09:34.


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