AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Weapons CleanUp (Barrearmas) (https://forums.alliedmods.net/showthread.php?t=151770)

Franc1sco 02-27-2011 12:46

[CS:S] Weapons CleanUp (Barrearmas)
 
Curent Version: v1.1

Description:

This plugin remove all weapons from the map every X seconds (configurable), useful for a bunny hop mod, deathmatch and mods where the weapons on the ground are not useful and prevents guns spam. Can also be adjusted so that only a admin command can remove the weapons.

Command:

sm_broom - Admin command for remove all weapons from the ground.

sm_escoba - Comando de admin para remover todas las armas del suelo.

CVar's:

sm_barrearmas_repeticion <1/0> , 1 on, 0 off. Function: If set to 0 then it will disable the auto broom and will only be for admin command. Default: 1

sm_barrearmas_msg_auto <1/0> , 1 on, 0 off. Function: If set to 1 is the activated every time a message is passed on the broom by the repeater. Default: 0

sm_barrearmas_msg_cmd <1/0> , 1 on, 0 off. Function: If set to 1 is then activated every time a message is passed on the broom admin command. Default: 1

sm_barrearmas_interval <10.0/20.0/30.0/40.0/∞> Function: Determines every X seconds to remove the weapons falls. Default: 30.0 (30 seconds)

To install:

Unzip in cstrike/

Changelog

Version 1.0
code released
Version 1.1
Translation integration

Credits:

Based in the plugin Weapon Cleanup of TechKnow and enhanced with new features created for me ( 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

RedSword 03-08-2011 17:40

Re: [CS:S] Remove Weapons
 
There is a way to get a multi-lingual mono-plugin you know ?

http://wiki.alliedmods.net/Translati...eMod_Scripting)

I'm pretty sure you won't get approved if you make one version of your plugin per language...

Franc1sco 03-09-2011 10:48

Re: [CS:S] Remove Weapons
 
Quote:

Originally Posted by RedSword (Post 1429998)
There is a way to get a multi-lingual mono-plugin you know ?

http://wiki.alliedmods.net/Translati...eMod_Scripting)

I'm pretty sure you won't get approved if you make one version of your plugin per language...

ok thanks, I'm working on it

Franc1sco 03-09-2011 15:26

Re: [CS:S] Remove Weapons
 
1 Attachment(s)
OK, now my plugin is multi-lenguaje with Translation integration so new version :)

v1.1 - Translation integration

bandit 03-22-2011 14:50

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
I really could use this, but players can still pickup weapons.
Mainly because the weapons do not disappear.
I have it set to2.0, and nothing happens, then I tried .5,, and 1.0
Enemy is killed and the player gets their weapons by picking it up.

Franc1sco 04-01-2011 13:13

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
Quote:

Originally Posted by bandit (Post 1437736)
I really could use this, but players can still pickup weapons.
Mainly because the weapons do not disappear.
I have it set to2.0, and nothing happens, then I tried .5,, and 1.0
Enemy is killed and the player gets their weapons by picking it up.

This plugin delete all weapons on the ground every X seconds, this not delete the guns when you drop your weapons.

bandit 04-01-2011 15:22

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
Can you set it up so when player is stripped of the weapon at spawn, and the weapon is dropped on the ground is can be deleted?

Molli 06-26-2011 07:49

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
Can you add: bomb stay in ground forever?

Blacksilver 01-06-2013 15:35

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
Only weapons or defuse kits too?

vodka00 01-07-2013 02:40

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
PHP Code:

if ( ( StrContains(weapon"weapon_") != -|| StrContains(weapon"item_") != -) && GetEntDataEnt2(ig_WeaponParent) == -

Yes, I think it targets weapons and items.

ApexPredator 04-18-2013 19:27

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
Also requesting bomb stay on ground

The End Is Near... 06-16-2013 09:50

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
https://forums.alliedmods.net/showthread.php?p=870661
very, very similar to the code

thetwistedpanda 06-16-2013 10:16

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
Quote:

Originally Posted by The End Is Near... (Post 1971342)

Quote:

Originally Posted by Franc1sco (Post 1424937)
Based in the plugin Weapon Cleanup of TechKnow and enhanced with new features created for me ( Franc1sco Steam: franug )


Franc1sco 06-16-2013 10:40

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
My first plugin ty :)

The End Is Near... 06-17-2013 11:32

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
sorry

nikedu45 08-23-2013 18:03

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
I would remove all normal weapons, except arms present at the beginning of the map.
You can not create a special version ?
I would be extremely grateful and probably other people too !!

Franc1sco 09-18-2013 12:42

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
1 Attachment(s)
Quote:

Originally Posted by nikedu45 (Post 2020347)
I would remove all normal weapons, except arms present at the beginning of the map.
You can not create a special version ?
I would be extremely grateful and probably other people too !!

Try this

Edit: update

steven124 11-05-2013 05:25

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
By killing Bomberman Bomb disappear immediately.

.BadGurl AKA FallenAngel 01-22-2014 14:40

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
Hi, I'm using your plugin on my Surf RPG server and it works but.. It appears to be crashing the server now and again and I get this error -

Quote:

L 01/22/2014 - 19:27:58: [SM] Displaying call stack trace for plugin "barrearmas.smx":
L 01/22/2014 - 19:27:58: [SM] [0] Line 79, /home/groups/alliedmodders/forums/files/9/4/2/7/7/125962.attach::OnEntityCreated()
Anyone had this problem?

Konstantin 10-30-2014 11:51

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
Franc1sco, can you fix this plugin please for CS:GO?

exstream 04-07-2018 15:54

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
2 Attachment(s)
well i hope you dont mind i made this work better with insurgency

removed clean up message
will clean up only listed items
you can change what it cleanses up by adding and removing from names in sp

JeffTM1TAP 01-05-2019 03:13

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
its posible for cs:go?

Bacardi 01-05-2019 03:47

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
Quote:

Originally Posted by JeffTM1TAP (Post 2632909)
its posible for cs:go?

Sure but why?

Game have own system. Not sure does it remove c4 also.
Code:

// If set to non-zero, will remove the oldest dropped weapon to maintain the specified number of dropped weapons in the world.
// Flags: FCVAR_GAMEDLL|FCVAR_RELEASE
// Default: "0"

weapon_max_before_cleanup "0"

// If set to non-zero, weapons will delete themselves after the specified time (in seconds) if no players are near.
// Flags: FCVAR_GAMEDLL|FCVAR_RELEASE
// Default: "0"

weapon_auto_cleanup_time "0"


BlackSabbarh 12-05-2019 01:54

Re: [CS:S] Weapons CleanUp (Barrearmas)
 
could add a counter of deleted items in the chat


All times are GMT -4. The time now is 11:29.

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