View Single Post
Plugin Info:     Modification:          Category:          Approver:   Emp` (115)
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 07-13-2007 , 18:26   Map Weapons Manager
Reply With Quote #1

Weapon Respawn

This plugins is as simple as it sounds:It respawns weapons after a certain time they were picked up.
I made this plugin for deathmatch in surf maps,because surf without weapons is no fun

Cvars:
weapon_respawn (0|1) - Turns respawning on and off.

weapon_respawn_time - Time in seconds to respawn a weapon without custom time after it was picked up.

Commands:

weapon_create <weapon_name> <count> - Creates a permanent spawn of given weapon name on current user's position. Needs ADMIN_RCON access.

weapon_delete - Deletes nearest PLUGIN-CREATED weapon spawn. Needs ADMIN_RCON access.

List of valid weapon names.Put them in "" to be sure.

MP5
TMP
P90
MAC10
AK47
SG552
M4A1
AUG
Scout
G3SG1
AWP
M3
XM1014
M249
Flashbang
HE Grenade
Kevlar
Kevlar + Helmet
Smoke Grenade


Files:

configs\weapons\mapname.cfg -
Stores weapons created with command above.This file is created/rewritten every create/delete command.

configs\weapons\RespawnTimes.cfg - Stores custom respawn times for different weapons. Comment a line or use "default" in place of the time to use the CVar.

Requires fakemeta module.

Code:
Changelog

0.2 - Forgot a pev_valid
0.3 - Added individual weapon times
0.4 - Added spawn creation system - suggestion by BlackMilk
0.41 - Fixed Error in touch code
Attached Files
File Type: sma Get Plugin or Get Source (map_weapons_manager.sma - 6737 views - 9.7 KB)

Last edited by danielkza; 07-26-2007 at 13:32.
danielkza is offline