PHP Code:
#include <amxmodx>
#include <fun>
new const PLUGININFO[][] = {"HP ON KILL", "X", "Geoslide"}
public plugin_init()
{
register_plugin(PLUGININFO[0], PLUGININFO[1], PLUGININFO[2])
register_event("DeathMsg", "Death_MSG", "a")
}
public Death_MSG()
{
new attacker = read_data(1)
new headshot = read_data(3)
if (headshot)
{
set_user_health(attacker, get_user_health(attacker) + 10)
if (get_user_team(attacker) == 2)
client_print(attacker, print_chat, "HEADSHOT")
}
}
Lo que estabas haciendo mal era que le mandabas el client_print a un "id" inexistente, en este caso el id es "attacker" y es al mismo al cual le tenes que mandar el print.
En vez de usar client_print, ponías client_prin.
Usaste "team" para verificar el team, y nunca habías definido a team, CS_TEAM_CT se usa en cstrike, pero yo te lo cambie, no use cstrike.
__________________