Raised This Month: $ Target: $400
 0% 

Setting hp Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spyper
Senior Member
Join Date: Sep 2013
Old 10-18-2013 , 16:03   Setting hp Plugin
Reply With Quote #1

I need a plugin for setting players hp (like this http://forums.alliedmods.net/showthread.php?p=650481 but not overheal)
Spyper is offline
Waky
Junior Member
Join Date: Mar 2013
Old 10-18-2013 , 17:23   Re: Setting hp Plugin
Reply With Quote #2

Hi Spyper,

do you want to set an other SpawnHP?
Please describe what you need.

Regards
Waky
Waky is offline
matchaboy
Senior Member
Join Date: Jun 2013
Location: Bananaland
Old 10-19-2013 , 02:13   Re: Setting hp Plugin
Reply With Quote #3

@Waky I think he means setting a player's health to 400, but it stays there without overhealing.

@Spyper I believe you can do this using the give items plugin and then from there use the attributes.
__________________
Learning how to make plugins.
matchaboy is offline
Spyper
Senior Member
Join Date: Sep 2013
Old 10-19-2013 , 10:05   Re: Setting hp Plugin
Reply With Quote #4

Quote:
Originally Posted by Waky View Post
Hi Spyper,

do you want to set an other SpawnHP?
Please describe what you need.

Regards
Waky
Hi
i want set health with a command [Not Overheal] like this:

example command:
sm_hp [player][hp amount]




Quote:
Originally Posted by matchaboy View Post

@Spyper I believe you can do this using the give items plugin and then from there use the attributes.
Thanks I will try

Last edited by Spyper; 10-19-2013 at 10:13.
Spyper is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-19-2013 , 15:53   Re: Setting hp Plugin
Reply With Quote #5

Set Health - No OverHeal Version !
I used TF2attributs to do your plugin. He is fully working. You will need to install TF2attrbiuts to make it work.

Here is a small tutorial (copyed from here) :

Installation (YOU WILL NEED SM 1.5+):
1) Place tf2attributes.smx in the server's sourcemod plugins folder (normally "addons/sourcemod/plugins/").
2) Place tf2.attributes.txt in the server's sourcemod gamedata folder (normally "addons/sourcemod/gamedata/").
3) Write or install a plugin that uses these natives. If writing the plugin, you will need to #include <tf2attributes>, which means you will need to place tf2attributes.inc in the "include" folder of wherever you develop/compile SourceMod plugins.

ALL FILES ARE IN MAIN POST :
http://forums.alliedmods.net/showthread.php?t=210221

When you have done this. Install my plugin like this :

1) Put TF2Advenced_Set_Health.smx in your plugins folder (sourcemod/plugins)
2) Reload plugins, restart map or restart server.


Command :

sm_hp [PLAYER] [AMMOUNT]

[PLAYER] = Name or group (@me, @red, @blue ...)

[AMMOUNT] = At how much you want set HP.

Exemple :

sm_hp @me 400

Logs :
Version 1.0 : First public release.
Version 1.1 : Fixed a translation bug, file wasn't loaded.
Attached Files
File Type: smx TF2Advenced_Set_Health.smx (10.0 KB, 272 views)
File Type: sp Get Plugin or Get Source (TF2Advenced_Set_Health.sp - 242 views - 1.3 KB)
__________________
Want to check my plugins ?

Last edited by Arkarr; 12-22-2013 at 03:44.
Arkarr is offline
Spyper
Senior Member
Join Date: Sep 2013
Old 10-19-2013 , 17:33   Re: Setting hp Plugin
Reply With Quote #6

Quote:
Originally Posted by Arkarr View Post
Set Health - No OverHeal Version !
I used TF2attributs to do your plugin. Here is fully working. You will need to install TF2attrbiuts to make it work.

Here is a small tutorial (copyed from here) :

Installation (YOU WILL NEED SM 1.5+):
1) Place tf2attributes.smx in the server's sourcemod plugins folder (normally "addons/sourcemod/plugins/").
2) Place tf2.attributes.txt in the server's sourcemod gamedata folder (normally "addons/sourcemod/gamedata/").
3) Write or install a plugin that uses these natives. If writing the plugin, you will need to #include <tf2attributes>, which means you will need to place tf2attributes.inc in the "include" folder of wherever you develop/compile SourceMod plugins.

ALL FILES ARE IN MAIN POST :
http://forums.alliedmods.net/showthread.php?t=210221

When you have done this. Install my plugin like this :

1) Put TF2Advenced_Set_Health.smx in your plugins folder (sourcemod/plugins)
2) Reload plugins, restart map or restart server.


Command :

sm_hp [PLAYER] [AMMOUNT]

[PLAYER] = Name or group (@me, @red, @blue ...)

[AMMOUNT] = At how much you want set HP.

Exemple :

sm_hp @me 400

Logs :
Version 1.0 : First public release.
Thank you too much
Spyper is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 10-20-2013 , 03:35   Re: Setting hp Plugin
Reply With Quote #7

Quote:
Originally Posted by Spyper View Post
Thank you too much
No problem, any donation is appreciate !
__________________
Want to check my plugins ?
Arkarr 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 06:18.


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