Map Weapons Manager

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Map Weapons Manager

Post by greenie »

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
get plugin
get source
Post Reply

Return to “General Purpose”