[Any] Set players health (with Spawn Health)
1 Attachment(s)
Description
One of my friends needed a plugin to set players' health, but he only wanted the health command, not all the others from SM Super Commands. So I wrote this plugin to him and decided to publish it here if anyone wants this too. CVAR list: No ConVars. Command list: sm_hp <name or #userid> <HP> - Sets a player's health sm_spawnhp <name or #userid> <HP> - Sets an amount of health to a player on spawn. Examples: sm_hp player1 200 sm_hp @all 500 sm_spawnhp player1 200 sm_spawnhp @all 500 Admin Flag SLAY/F is required to use the commands. Changelog: Quote:
Download sethealth.smx and put it into addons/sourcemod/plugins folder. Bugs: CS:GO: Setting the health to 0 stops the player from any movement or hud display. TF2: Setting the health to 0 or below will give the player god mode. I have currently fixed this by making it impossible to use a value of 0 or below. -This is my second plugin ever- |
Re: [Any?] Set players health
We already have a Set Health plugin.
That plugin supports a number of games, whereas this one is incredibly small in size and probably only works for one game. It's good work for a second plugin though, I'll give ya that. |
Re: [Any?] Set players health
You haven't load translation which ReplyToTargetError and translated target name require...
|
Re: [Any?] Set players health
Quote:
Plugin updated. |
Re: [Any?] Set players health
Quote:
|
Re: [Any?] Set players health
Good Job! The plugin works fine for TF2. It's even better than the other one because I can set the hp lower than normal (for example I can't set the Heavys health under 300 with the other plugin). But if you set the hp to 0 or anything lower with this plugin you are invincible.
|
Re: [Any?] Set players health
Works for CS:GO using values of -999 - -1 > 0 < 1-999, using a value of 0 stops the player from any movement or hud display. A great small nifty plugin nonetheless.
|
Re: [Any?] Set players health
Quote:
|
Re: [Any?] Set players health
Quote:
I don't think I can fix this in TF2 since I'm noob to Sourcemod scripting and doesn't have a TF2 server |
Re: [Any?] Set players health
Quote:
|
All times are GMT -4. The time now is 21:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.