Can anyone explain to me how i can do the following?
I have about 20 cases with different type of victims, and i would like to save the desired text i want to display for each specific case then insert it into a hud message
PHP Code:
fw_PlayerKilled(victim, attacker)
{
if(leader_human(victim))
{
save "Last Kill: get_pcvar_num(cvar_numer_points_last) Points" text in a variable/array
else if(last_human(victim))
{
save "Last Kill: get_pcvar_num(cvar_numer_points_last Points" text in a variable/array
}
set_hudmessage(bla bla)
show_hudmessage(attacker, "%s", text from above cases)
}
__________________