mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 12:03:21 +00:00
State health
This commit is contained in:
parent
e762ae8de2
commit
75322c044e
2 changed files with 2 additions and 1 deletions
Binary file not shown.
|
@ -129,7 +129,8 @@ public void Event_HealSuccess(Event event, const char[] name, bool dontBroadcast
|
||||||
if(client) {
|
if(client) {
|
||||||
int target = GetClientOfUserId(event.GetInt("subject"));
|
int target = GetClientOfUserId(event.GetInt("subject"));
|
||||||
int amount = event.GetInt("health_restored");
|
int amount = event.GetInt("health_restored");
|
||||||
PrintToConsoleAll("[Debug] %N healed %N (+%d health)", client, target, amount);
|
int orgHealth = GetClientHealth(target) - amount;
|
||||||
|
PrintToConsoleAll("[Debug] %N healed %N (+%d health, was %d)", client, target, amount, orgHealth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue