Raised This Month: $ Target: $400
 0% 

Weapons Remover (Remove weapon spawns)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Caza
Junior Member
Join Date: Sep 2009
Old 01-09-2010 , 19:47   Weapons Remover (Remove weapon spawns)
Reply With Quote #1

Weapons Remover
Current version: 1.0 (10-Jan-2010)

Not tested in CS:CZ but it should works
I have found some plugin that seems to this, but they are a bit difficult to use, and this is so easy for any player.

- Description -
How many times have you played maps and people pick up weapons from the roof at the first round? How many times have you played "the zombies" and there are 10 Machineguns on the map? And on fy_maps? The person who pickup the AWP is OWNING and in your server this gun is restricted! That's unfair!

Well, this plugin allows you to remove/delete the weapons/guns spawns on the map that you specify in a config.

- Commands -
remove_weapons (in console) - Removes all the weapons on the map

- Instructions -
You have got a config file for all maps, located in amxmodx/configs/weapons_remover.cfg

If you want an specific configuration for a map, you must create a file in your amxmodx/configs/weapons_remover/ folder and call it mapname.cfg . For example:
amxmodx/configs/weapons_remover/de_dust2.cfg and paste there all the text in the weapons_remover.cfg.

ALL CVAR HAS ITS OWN "1" or "0" NEXT IT

THE "1" MEANS -> ALLOW THE WEAPON
THE "0" MEANS -> REMOVE THE WEAPON

For example: If you set rw_USP to "0" means that all USP dropped on the
/floor will be removed!. However if you set it to "1" means that the weapon
will be on the floor in the USP Spawn point of the map (if it has).

- Cvars -

rw_enabled "1" - 1 = Enable the plugin, 0 = disable the plugin.


ATTENTION:
THE "1" MEANS -> ALLOW THE WEAPON
THE "0" MEANS -> REMOVE THE WEAPON


///////////////
// PISTOLS //
///////////////

rw_USP "1"
rw_GLOCK18 "1"
rw_DEAGLE "1"
rw_ELITE "1"
rw_P228 "1"
rw_FIVESEVEN "1"


//////////////////
// SHOTGUNS //
//////////////////

rw_M3 "1"
rw_XM1014 "1"


///////////
// SMG //
///////////

rw_UMP45 "1"
rw_MP5NAVY "1"
rw_TMP "1"
rw_MAC10 "1"
rw_P90 "1"


//////////////
// RIFLES //
/////////////

rw_AUG "1"
rw_GALIL "1"
rw_FAMAS "1"
rw_M4A1 "1"
rw_AK47 "1"
rw_SG552 "1"
rw_G3SG1 "1"
rw_SG550 "1"
rw_SCOUT "1"
rw_AWP "1"


///////////////////////
// MACHINE GUNS //
//////////////////////

rw_M249 "1"

//////////////////
// GRENADES //
/////////////////

rw_HEGRENADE "1"
rw_FLASHBANG "1"
rw_SMOKEGRENADE "1"


///////////////////
// EQUIPMENT //
//////////////////

rw_KEVLAR "1"
rw_ASSAULTSUIT "1"
rw_SHIELD "1"


- Known bugs -
None.
- Credits -
· Caza - Head coder
· xPaw - Little help
- Changelog -
1.0 - (10-JAN-2010) Initial release.
Code:
PLEASE ANYONE TRY IT IN CS:CZ, Thanks :)
Attached Files
File Type: zip Weapons_Remover_configs.zip (3.0 KB, 409 views)
File Type: sma Get Plugin or Get Source (Weapons_Remover.sma - 1408 views - 15.1 KB)
__________________
When something is 99%, dont think in the 1% remaining, think in all the hundreds of 0,01% remaining.

Last edited by Caza; 01-09-2010 at 19:57.
Caza is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-09-2010 , 19:56   Re: Weapons Remover (Remove weapon spawns)
Reply With Quote #2

1. There is already per-map config file support in AMX Mod X.

2. Your code is very redundant.

3. Why would you use pcvars for all cvars except rw_log ?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-09-2010 , 22:39   Re: Weapons Remover (Remove weapon spawns)
Reply With Quote #3

+ big lol at duplicated code + model check.
Do only 1 loop (while) and use cstrike module native to retrieve armoury type.
And there's already a plugin by VEN that is better than yours.
http://forums.alliedmods.net/showthread.php?p=458317
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 01-10-2010 , 01:30   Re: Weapons Remover (Remove weapon spawns)
Reply With Quote #4

I will edit this and run it under Half-Life
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Old 01-19-2010, 21:22
Anggara_nothing
This message has been deleted by Anggara_nothing. Reason: i'm late ;)
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-10-2010 , 04:23   Re: Weapons Remover (Remove weapon spawns)
Reply With Quote #6

rwStart() what the hell is there ? O_o
__________________
xPaw is offline
Caza
Junior Member
Join Date: Sep 2009
Old 01-10-2010 , 11:56   Re: Weapons Remover (Remove weapon spawns)
Reply With Quote #7

Quote:
Originally Posted by xPaw View Post
rwStart() what the hell is there ? O_o
Is the function that search for the weapons and delete them, executed by set_task(2.0, "rwStart"); in plugin init()
__________________
When something is 99%, dont think in the 1% remaining, think in all the hundreds of 0,01% remaining.
Caza is offline
SHLAKBAUM
Member
Join Date: May 2009
Old 01-10-2010 , 05:34   Re: Weapons Remover (Remove weapon spawns)
Reply With Quote #8

Rename...
http://forums.alliedmods.net/showthread.php?t=89811
__________________
[Steam]
[IMG]http://a.**************/img693/1005/afterglow.png[/IMG]
SHLAKBAUM is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-10-2010 , 08:52   Re: Weapons Remover (Remove weapon spawns)
Reply With Quote #9

Quote:
Originally Posted by SHLAKBAUM View Post
That one is much better and unapproved



@GordonFreeman (RU)
armoury_entity doesn't exists on HL AFAIK.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Caza
Junior Member
Join Date: Sep 2009
Old 01-10-2010 , 11:50   Re: Weapons Remover (Remove weapon spawns)
Reply With Quote #10

Lol i didnt saw http://forums.alliedmods.net/showthread.php?t=89811 this lol the same name lol sorry a lot xDD, Well this happens because is my first plugin
__________________
When something is 99%, dont think in the 1% remaining, think in all the hundreds of 0,01% remaining.

Last edited by Caza; 01-10-2010 at 11:53.
Caza 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 20:56.


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