This plugin is by Calzinger.
Quote:
Calzinger Wrote :
The Flares plugin is used to brighten up dark areas of a map. Clients that want to use the flares must buy them first. Flares are especially good while NightFight mode is on where the whole map is completely dark. The flares help do distinguish areas. Enjoy!
|
Code:
/*
/*
FLARES v1.2
By Calzinger
Contact:
Email: <a href="mailto:[email protected]">[email protected]</a>
AIM: XSouLHeLLTemplaR
MSN: <a href="mailto:[email protected]">[email protected]</a>
Thanks to Nerdz for the Night Fight idea.
*******************************************************************************
Ported By KingPin([email protected]). I take no responsibility
for this file in any way. Use at your own risk. No warranties of any kind.
*******************************************************************************
Quick Description:
This plugin will allow the user to buy flares and then fire them in dark areas.
The costs and maximum number of carriable flares are customizable through a CVAR,
along with the duration of the flare.Each flare has a unique color that is chosen
randomly. If you are somewhat far from the flare, your hands and weapon will tint
the color of that flare.
CVARs:
flare_cost 400 -> Cost of each flare
flare_max 5 -> Max number of flares to carry at a time
flare_duration 10.0 -> Length of flare (in seconds), must be a float
flare_start 10 -> Number of flares a player gets per lifetime (NOT APPLY TO CSTRIKE)
Client Commands:
say /buyflare -> Buy a flare
shootflare -> Shoot a flare
Admin Commands:
amx_flare -> Shoot a flare (ADMIN ONLY; NO AMMO PENALTY)
amx_nightfight < toggle > OR < 1/0 or on/off > -> Turn on/off NightFights
*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <Vexd_Utilities>
Enjoy and post any problems with this plugin here, I will try my best to help you out with them.