Hey guys,
I´m having a problem with the statsx-plugin.
I want to get a touch added as a knife kill in the stats from amx.
So actually statsx uses a query like this to see who killed somebody :
PHP Code:
public client_death(killer, victim, wpnindex, hitplace, TK)
{
// Bail out if no killer.
if (!killer)
return PLUGIN_CONTINUE
if (killer != victim)
{ .......
Actually the method I use to let people die by touch is not compatible with it because I use user_silentkill and then create a deathmessage.
PHP Code:
public touch(pToucher, pTouched) {
if(enable && !wait) {
if(pToucher > 0 && pToucher < 33 && is_user_alive(pToucher) && team[pToucher-1] == 1) {
if (pTouched > 0 && pTouched < 33 && is_user_alive(pTouched) && team[pTouched-1] == 0) {
score[pToucher-1][0]++
score[pToucher-1][1]++
score[pTouched-1][2]++
new team = get_user_team(pToucher)
if(team == 1)
points[0]++
else
points[1]++
//set_user_frags(pToucher,get_user_frags(pToucher)+1)
//cs_set_user_deaths(pTouched,cs_get_user_deaths(pTouched)+1)
set_msg_block(deathMsg,BLOCK_ONCE)
set_msg_block(scoreMsg,BLOCK_ONCE)
user_silentkill(pTouched)
make_deathmsg(pToucher,pTouched,0,"knife")
entity_set_float(pToucher,EV_FL_frags,float(score[pToucher-1][0]+(score[pToucher-1][3]*UEBERLEBEN)))
apply_scoreboard(pToucher)
apply_scoreboard(pTouched)
update_teamscore()
if(other_num() == 1)
speed()
}
}
}
}
Maybe somebody can tell me how I can fix the issue. I appreciate any help
Edit :
Maybe "client_damage ( attacker, victim, damage, wpnindex, hitplace, TA )" could help me out of this issue, right?
I could just give 100 dmg and then it should work. I'll try this out

What´s TA for?
Ah.. its just to query... I cant "give" damage with this :>
The easiest way would be to give 100 dmg from pToucher to pTouched but is there a command to do this?