View Single Post
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-13-2011 , 13:11   Re: [REQ] HEGrenade Give with optional rate/delay?
Reply With Quote #6

Okay... done :)

A little more involved than I first though. And I made it a little VIP-ish if you care to use it.

Only players with CUSTOM1 flag will be given an hegrenade at spawn. You can override this to include any player by adding the following into your admin_overrides.cfg:

"give_unlimitedhe_allow" ""
or if you want only those with CUSTOM4 it would be:
"give_unlimitedhe_allow" "r"

There's also an admin command you can use to toggle this plugin on or off (admin flag is set to generic, but you can override this in admin_overrides.cfg):
sm_unlimitedhe
Usage: sm_unlimitedhe <1/0>
1=ON, 0=OFF

A config file will be created in your cstrike/cfg/sourcemod called UnlimtedHE.plugin.cfg. In that file you can set your variables:

sm_unlimitedhe_delay
"sm_unlimitedhe_delay" = "15" ( def. "15" ) min. 0.100000 max. 300.000000
- Number of seconds to wait after HE detonation to give player a new hegrenade

sm_unlimitedhe_enabled
"sm_unlimitedhe_enabled" = "1" min. 0.000000 max. 1.000000
- 1=enabled, 0=disabled


-----------
reuploaded .sp due to spelling error in command reply
Attached Files
File Type: sp Get Plugin or Get Source (UnlimitedHE.sp - 285 views - 6.6 KB)

Last edited by TnTSCS; 11-13-2011 at 13:14.
TnTSCS is offline