Thread Rating:
  • 3 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Released]  Pills Cure Plugin
Plugin Version1.1
Plugin CategoryGameplay
Plugin DescriptionPills can cure infection (default 30% chance)
Plugin Downloadpills_cure.zip
#1
Upon using pills there is a chance (30% by default, can be changed at the top of the file) that it will cure your infection.

Installation: Put the pills_cure.as in zps/data/scripts/plugins and add pills_cure in your default_plugins.txt (zps root where gameinfo.txt etc is).

Code:
1
2
3
4
5
6
7
8
9
"Plugins"
{
	"plugin"
	{
		"name"		"Pills Cure"
		"script"	"pills_cure"
		"lifetime"	"HOTRELOADABLE"
	}
}



License:

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Quote:THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.


Changelog:

- Updated hooks now using CHL2MP_Player instead of CBasePlayer (Thanks to Jonny)
- Simplyfied code
- Added colors (Again thanks to Jonny telling me about them)
Reply
#2
Neat!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)