Raised This Month: $51 Target: $400
 12% 

Upgrade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Kristaps08
Junior Member
Join Date: Jun 2010
Old 05-15-2012 , 10:47   Upgrade
Reply With Quote #1

Upgrade


Description:

If you buy the upgrade then it gives you 150hp + 150ap + lower gravity + faster speed. (cost for upgrade and hp/ap/gravity/speed can be changed with cvars)

This is my first public plugin.



Cvars:

upgrade_speed - Sets the speed of upgrade. (default 300.0)
upgrade_hp - Sets the health for upgrade. (default 150)
upgrade_ap - Sets the armor for upgrade. (default 150)
upgrade_gravity - Sets the gravity for upgrade. (default 0.75)
upgrade_cost - Sets the cost of upgrade. (default 4000)



Admin Commands:

amx_upgrade <target> [0|1] - 0=TAKE 1=GIVE


Planning to add:

Nothing yet.


Known Bugs:

None yet.


Changelog:

Code:
- v1.0
* First public release.

- v1.1
* Removed client_connect()
* Changed from CurWeapon event to Ham_Item_PreFrame
* Code changes and cleanup.

- v1.2
* Removed cmd_upgradehelp() because wasnt needed.
* Added automatic message that will display after some time.
* Combined amx_give_upgrade and amx_take_upgrade commands together into amx_upgrade.
* Added support for amx_show_activity.

- v1.3
* Changed and cleaned up some code.
* Added fakemeta.

- v1.4
* Optimized code.

- v1.5
* Fixed freezetime bug.
* Optimized a little bit of the code.
* Added description.

- v1.6 - FINAL
* Optimized the code a little bit again.
Attached Files
File Type: txt upgrade.txt (636 Bytes, 129 views)
File Type: sma Get Plugin or Get Source (upgrade.sma - 625 views - 4.6 KB)

Last edited by Kristaps08; 08-29-2012 at 06:18. Reason: Updates
Kristaps08 is offline
 



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 21:18.


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