Код:
#define DISTANCE 9999
new iTarget, iBody
get_user_aiming(id, iTarget, iBody, DISTANCE)
new szGetClassName[32]
get_entvar(iTarget, var_classname, szGetClassName, charsmax(szGetClassName))
if(equali(szGetClassName, COMPARE_ENT)) {
client_print(id, print_chat, "successfully")
}
client_print(id, print_chat, "Aiming ent: %s | Compare ent: %s", szGetClassName, COMPARE_ENT)
Че ему надо?)