Hi,
I'm trying to fetch the weapons from kills using register_event on DeathMsg.
Since I'm not interested in all weapons I thought I'd exclude those in the event condition.
I tried this:
PHP Code:
register_event("DeathMsg", "weaponcheck", "a", "4!usp", "4!elite")
That doesn't work, it registers all DeathMsg events (including usp and elite)
If i try it the other way round:
PHP Code:
register_event("DeathMsg", "weaponcheck", "a", "4=usp", "4=elite")
That works: It only registers usp and elite frags
It seems with multiple conditions that ! is AND while = is OR. If I only use one condition ! works fine too (register_event("DeathMsg", "weaponcheck", "a", "4!usp")
I could use the = comparison and list all weapons I'm trying to fetch (which is a lot) or filter the weapons in the called function, but that seems like a waste of resources
Anyone know how to solve that?
Thanks!