 |
|
Veteran Member
Join Date: Feb 2010
Location: Maryland
|

09-09-2012
, 08:45
Re: 2 things
|
#10
|
Quote:
Originally Posted by daniel46
2 i build this code
PHP Code:
new armor = get_user_armor(victim);
new health = get_user_health(victim);
new szName[32];
get_user_name(victim,szName,31)
if(armor && cs_get_user_team(attacker) == CS_TEAM_T && DayActive)
{
set_hudmessage(255, 0, 0, 0.01, 0.29, 0, 6.0, 12.0)
show_hudmessage(attacker, "Name: %s^nHealth: %d^nArmor: %d", szName, health, armor)
}
else if(cs_get_user_team(attacker) == CS_TEAM_T && DayActive)
{
set_hudmessage(255, 0, 0, 0.01, 0.29, 0, 6.0, 12.0)
show_hudmessage(attacker, "Name: %s^nHealth: %d", szName, health)
}
}
its with ham take dmg and there is 1 thing i dont know how to do when i hit hemm its shows hes health but not the health with the -health i hited hemm how can i cout it to?
|
hook it as post
Code:
RegisterHam(Ham_TakeDamage, "player", "doneGotShotAfter", 1)
__________________
What an elegant solution to a problem that doesn't need solving....
|
|
|
|