Regenerator
1 Attachment(s)
:):):up::up:Hello all People, I am very very new with Amx Mod X Scrpiting and I have just made this little thing that regenerates players health!!!
Description: This is a little admin thing that regenerates person's health/Armour... When You Use this command , it will regenerate the chosen player's health and to the customizable value... CVARS!!!: amx_reg_enabled 0/1 - Enables this plugin amx_reg_speed - 0.1 is default, this is the speed of regeneration amx_reg_hp - 50 is default, HOw much shall a player recieve. amx_type 1/2 -1=Regenerator will stop at mod's max health/armor 2= Will stop from the values below. amx_reg_max_xp - At what health shall the regenerator stop? amx_reg_max_armor - At what armour shall the regenerator stop? Commands!!!: amx_regenerate "player" / @all -Starts the regeneration on player or whole server!!! Credits: Steve139 - My AMXX Teacher!!!! Notes: Works Fine For CS,CS CZ,TFC,HL,OP4,NS,SC,SCXP If you want this for Fakemeta, ask me I will add it here! Works With Any Half-Life Mod From now on :D FUN/ENGINE MODULE IS REQUIRED!!!! |
Re: Regenerator
This is all you have to do:
PHP Code:
|
Re: Regenerator
Please add the SMA to the first post
|
Re: Regenerator
hmm...
That's not bad for a start But try using more cvars next time ;) |
Re: Regenerator
I'm working on a CVar that enables this whole thing.... I'll try too do that myself :D
EDIT: Done =) |
Re: Regenerator
Description?
|
Re: Regenerator
PHP Code:
|
Re: Regenerator
I suggest using pcvars and changing your checks on health so that they use less than checks as opposed to the not equals check as if health was manually set above the hardcoded limit the plugin will continue to increase their health.
|
Re: Regenerator
Quote:
|
Re: Regenerator
A few things, I would cache the armor and such like new armor = get_user_armor(id)
And instead of doing if life != 100 or seomthign do if life < 100 (since what if there life was 250 from another plugin, that sucks to reset it.) |
All times are GMT -4. The time now is 22:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.