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

Set Health


Post New Thread Reply   
 
Thread Tools Display Modes
RonanZer0
Member
Join Date: Aug 2012
Old 08-23-2012 , 21:37   Re: Set Health
Reply With Quote #41

how do i set my health to 2500 exactly without it degrading unless im taking damage?
they managed to make the sentry buster have that much so yeah... idk why it wont work for players without overheal...
RonanZer0 is offline
LATINOBOY
Junior Member
Join Date: Mar 2013
Old 03-23-2013 , 01:47   Re: Set Health
Reply With Quote #42

In CSS i cant seem to set health to One side of the team. Example:
sm_sethealth @CT 100
LATINOBOY is offline
Seth.D
Member
Join Date: Apr 2011
Old 03-26-2013 , 04:47   Re: Set Health
Reply With Quote #43

This plugin is amazing, but I would like a command to reset the health of a player to the maximum of whatever health his/her class typically has (in TF2).

Example: I'm playing as Scout and I gave myself 2000 health. I want to reset my health back to normal so I just use the command and it will set me back to 125 health (Scout's default health if I remember correctly). If I use it for Heavy it would set me back to 300 health instead.

Bonus points if you are able to make it account for max health changing items (like Sandman, Warrior's Spirit, Eyelander).

I hope I'm not being too unreasonable with this, it's just a suggestion. I already greatly appreciate your plugin as it is and you don't have to add this at all if you don't want to. Many thanks!

Last edited by Seth.D; 03-26-2013 at 04:53.
Seth.D is offline
logitech69
New Member
Join Date: Apr 2013
Old 04-09-2013 , 13:59   Re: Set Health
Reply With Quote #44

Works good but I'm having trouble trying to access this from my "sm_admin" menu. I already did the following to my sourcemods/config/adminmenu_custom.txt :

// Custom admin menu commands.
// For more information:
//
// http://wiki.alliedmods.net/Custom_Ad...28SourceMod%29
//
// Note: This file must be in Valve KeyValues format (no multiline comments)
//

"Commands"
{
"Resupply"
{
"Give Health"
{
"cmd" "sm_givehealth #1 #2"
"admin" "sm_givehealth"
"execute" "player"
"1"
{
"type" "player"
"method" "name"
"title" "Player To Heal:"

}
"2"
{
"type" "list"
"title" "Amount of Health:"
"1" "50"
"2" "100"
"3" "150"
"4" "200"
"5" "250"
"6" "300"
}

}
}
}

I get the all of the menus when I enter "sm_admin", and I see "Resupply, Get Health, all the player's names, and the amount, BUT, it doesn't actually give me health.

What am I doing wrong?

TIA!

logitech69 is offline
phit
Junior Member
Join Date: Apr 2013
Location: Germany
Old 06-09-2013 , 14:09   Re: Set Health
Reply With Quote #45

Quote:
Originally Posted by logitech69 View Post
"Commands"
{
"Resupply"
{
"Give Health"
{
"cmd" "sm_givehealth #1 #2"
"admin" "sm_givehealth"
"execute" "player"
"1"
{
"type" "player"
"method" "name"
"title" "Player To Heal:"

}
"2"
{
"type" "list"
"title" "Amount of Health:"
"1" "50"
"2" "100"
"3" "150"
"4" "200"
"5" "250"
"6" "300"
}

}
}
}

I get the all of the menus when I enter "sm_admin", and I see "Resupply, Get Health, all the player's names, and the amount, BUT, it doesn't actually give me health.
the command is sm_sethealth and not sm_givehealth

Last edited by phit; 06-09-2013 at 14:09.
phit is offline
kot4404
Senior Member
Join Date: Mar 2013
Old 07-30-2014 , 05:39   Re: Set Health
Reply With Quote #46

It works for l4d2
kot4404 is offline
alencore
Senior Member
Join Date: Oct 2011
Old 12-08-2014 , 02:12   Re: Set Health
Reply With Quote #47

yeah it works but how to make it auto load the health without the need of running the commands over and ver again for each round start in CSS?
__________________
alencore is offline
predaaator
Member
Join Date: Nov 2008
Old 02-09-2015 , 10:57   Re: Set Health
Reply With Quote #48

Quote:
Originally Posted by alencore View Post
yeah it works but how to make it auto load the health without the need of running the commands over and ver again for each round start in CSS?
I use this plug my friend
https://forums.alliedmods.net/showthread.php?p=590466
predaaator is offline
Linkaton
Junior Member
Join Date: Jun 2016
Location: Ohio
Old 06-19-2016 , 05:04   Re: Set Health
Reply With Quote #49

This works for TF2 however is there any possible option for set max health?
I do set health however it steadily drains over time. Trying to do set max health doesn't do anything.
Linkaton is offline
Reply



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 08:26.


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