Raised This Month: $59 Target: $400

Ditka's Nade Controller (for fy_ maps)

Post New Thread Reply   
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   devicenull (200)
Junior Member
Join Date: Jun 2004
Old 06-20-2004 , 13:11   Ditka's Nade Controller (for fy_ maps)
Reply With Quote #1

This plugin restricts the purchase of smoke and flashbangs on all maps.
In addition, if (mp_dnc = 1) then:
-Only people with positive scores can buy nades on fy_ maps.
-If one team skunks the other by the value of mp_dnc_rapecount (7 by default) then the nade rape preventer sets in and noone will be able to buy an he nade until the start of the next round.

This plugin has not been tested on Steam, but I have no reason to believe that it would not work.

See this script in action at:
Attached Files
File Type: sma Get Plugin or Get Source (amx_dnc.sma - 1479 views - 3.6 KB)
ditka is offline
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 06-20-2004 , 13:27  
Reply With Quote #2

lol sounds fun will test it out.
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Junior Member
Join Date: Jul 2005
Old 07-05-2005 , 14:53   =)
Reply With Quote #3

i really like this idea, but i don't like that only positive scores can buy nades, would rather just no1 buys if winning team has 'x' amount of players. What code would i hafta take out to do that?
deadnewb is offline
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-15-2005 , 14:14  
Reply With Quote #4

You need to require_module() all of the modules you use.

public plugin_modules() {     require_module("cstrike") }
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline

Thread Tools
Display Modes

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 05:43.

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