Quote:
Originally Posted by XxAvalanchexX
Try this and see what it says the classname is for the entities above 32:
Code:
new bum = get_user_attacker(id), classname[32]
if(is_valid_ent(bum)) entity_get_string(bum,EV_SZ_classname,classname,31)
else classname = "null"
client_print(0,print_chat, "DEBUG: Bum id = %d (%s), Victim id = %d",bum,classname,id)
|
Huh! This is what it returns
Whats returned with XxAvalanchexX code
It thinks the attacker is a tf_rpg_rocket when it should return the player id i guess. As no second or third argument is there it SHOULD return the id according to
http://www.amxmodx.org/funcwiki.php?...cker&go=search.
And now i used
Code:
register_event("Damage", "Event_Damage","b","2!0");
__________________
A dodo: Used to describe someone without common sense and who always has the pathetic confused look on their face when a question is asked.