Help with the plugin :(
Started by SzczupaK
23/02/2014 14:11
Page 1 of 1
SzczupaK23/02/2014 14:11
There a plugin called head splash its made by potatis_invalido :D and i wanted to add there a colorchat like Attacker killed Victim. I made id half way but plugin it doesnt show the name of the attacker and it shows server name for victim. Can u help me guys coz im trying to make it for like month now. And getting little bit MAD!
Juice23/02/2014 17:47
in damage_player() get names of pwned and pwnzor and print them???:S
SzczupaK24/02/2014 20:34
So i did it like that
if(get_user_team(pwnzor) != get_user_team(pwned)) // If it was a team kill, the pwnzor's money should get reduced instead of increased.
{
new pwnzorname [32]
new pwnedname [32]
get_user_name(pwnzor, pwnzorname, 31)
get_user_name(pwned, pwnedname, 31)
ColorChat(0, BLUE, "%s wlasnie zdeptal %s",pwnzorname, pwnedname)
set_pev(pwnzor, pev_frags, float(get_user_frags(pwnzor) + 1));
cs_set_user_money(pwnzor, cs_get_user_money(pwnzor) + 300);
}and it doesn't show the name of attacker and its shows sever name instead of vicitim.
Page 1 of 1
Please log in to post replies.