Raised This Month: $ Target: $400
 0% 

HpRegeneration


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alencore
Senior Member
Join Date: Oct 2011
Old 02-02-2015 , 07:52   Re: HpRegeneration
Reply With Quote #24

Quote:
Originally Posted by senseit View Post
I made the following changes to your plugin, and have attached the source..

Made the plugin have seperate configuration for 2 different teams defined with the teamindex variable.

New configuration layout..
Code:
sm_hpregeneration_enable 1
sm_hpregeneration_respawn 0
sm_hpregeneration_bots 0

sm_hpregeneration_mode 2

sm_hpregeneration_team1 2
sm_hpregeneration_tickrate1 1
sm_hpregeneration_health1 125
sm_hpregeneration_amount1 2

sm_hpregeneration_team2 3
sm_hpregeneration_tickrate2 1
sm_hpregeneration_health2 200
sm_hpregeneration_amount2 6
It's more or less the same options except, for 2 seperate teams..

I also modified the events so that on spawn, a players health is automatically set to sm_hpregeneration_health(1/2) (depending on which team they're on)..

The sm_hpregeneration_team2 value assigns which team is team1 and which is team2 using the team index. You can use mani admin ma_teamindex to find out which index number each team is (this is how i did it).

It's ugly, but it works. You may want to clean up the code if you decide to integrate it into your plugin. Keep all the rights to it, I just wanted something that worked for 2 teams separately.
This is absolutely perfect and it works thank you very much sir! T Y M as well to the original of course hehe.
__________________
alencore 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 07:23.


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