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

Super Condition Amount


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Exolent[jNr] (178)
Texnux
Member
Join Date: Mar 2008
Location: Denmark
Old 10-28-2008 , 17:22   Super Condition Amount
Reply With Quote #1

Super Condition Amount, by Texnux, version 1.2, updated 28-10-2008

Info:
Was only tested on CZ but should work with every mod with armor, uploaded one only with the health command.

Notice that neither health or armor (in the hud) can show the right amount, use this to show health http://forums.alliedmods.net/showthr...ht=show+health, I might make my own, but just use his for the time being.

Description
This plugin gives the ability, as sooo many other plugins, to give health and/or amount but with an unheard amount sky high limit and can do something more.

Features:
- Set target's/all's/teams health, armor or both and even at each spawn
- Is much more advanced in some ways
- Does only use one command for everything
- Has an in game (console) how to guide
- Gives information about the player you want to change health, armor or both
- Support maximum value: 2.147.000.000 (test worked up to that and some over, but it can't get even close to the max int value (2147483647))

Manual:
It has five parameter, I'll go through how it works and what with what and whatnot.

Notice that if you use the one only with health the second parameter wont exist leaving only four parameters!

amx_csa_user target/@all/@ct/@t hp/ap/both add/set/take/start/stop amount (yes)

The first parameter is about the target(s).
The second parameter is either health, armor or both to do action on.
The third parameter is the action add, set, take is self explaining, start is the amout the target(s) will get each round, stop is to stop it.
The fourth is amount
The fifth is yes and will only work if the action is set, it will set the health/ap or both to the amount right now and each round.

The plugin will tell you what you are doing wrong if you did something wrong.

Modules:
- Hamsanwich
- Fun

Command usage:
amx_csa_user - shows the manual
amx_csa_user [target] - shows information about that targets health and armor
amx_csa_user [target] [hp/ap/both] [set] [amount] [yes] - Sets amount right now and each round for the target(s)
amx_csa_user [target] [hp/ap/both] [action] [amount] - Will do whatever action on the target(s)

Why:
This was a request (pm):
Quote:
Originally Posted by krededk99
I'm seeking a plugin where i can specify someones health. Were talking big numbers, not just 4000 hp max. The ones i'd been able to find doesnt support more, so would it be possible for you to make a plugin where i can set a players HP to, say 25000 or more?

like amx_sethealth player <hp> <armor>

Thanks for helping me.

Kristian.
Sorry Kristian, but I just had to do it a little more advanced than just that , hope you enjoy it and I really wonders what you need 25000 hp for?!?

Bugs:
There is no known bugs, I've tested it quite throughly, but if you discover one, please tell. Please tell me if you want something done differently/better or find some bugs!

Changelog:
Quote:
Version 1.0
- Public release

Version 1.1
- Changed from start to spawn
- Gives health on each player spawn instead of round start
- Split plugin to one with armor and health and one with only health to support all mods without armor

Version 1.2
- Small message fixes/additions
- Small optimatizions
- Able to use action spawn and stop on dead players

- Texnux
Attached Files
File Type: sma Get Plugin or Get Source (sca_no_ap.sma - 1489 views - 7.6 KB)
File Type: sma Get Plugin or Get Source (sca.sma - 1475 views - 10.1 KB)

Last edited by Texnux; 10-28-2008 at 19:51.
Texnux 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 16:29.


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