I want this to be called every time someone is shot, and to the player that did the shooting to be sent a message containing how much damage was done by that shot.
Code:
public damage_color(id){
new dyTeam[32], dyDamage[32]
get_user_team(id, dyTeam, 2)
// Place Damage Done Here, please make it read into dyDamage.
if(dyTeam == "co"){
set_hudmessage(0, 0, 255, -0.50, 0.45, 0, 3.0, 6.0, 0, 0, 3)
show_hudmessage(0,"%s",dyDamage)
}else{
set_hudmessage(255, 0, 0, -0.50, 0.45, 0, 3.0, 6.0, 0, 0, 3)
show_hudmessage(0,"%s",dyDamage)
}
}