Raised This Month: $ Target: $400
 0% 

register_event conditions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Aydeev
Junior Member
Join Date: Oct 2014
Old 10-28-2014 , 19:47   register_event conditions
Reply With Quote #1

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!

Last edited by Aydeev; 10-28-2014 at 19:48.
Aydeev is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode