Raised This Month: $ Target: $400
 0% 

I have a question [important]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 10-31-2005 , 22:11  
Reply With Quote #2

no you can't create your own events but if you want a function to be called whenever someone uses a knife then you probably want to register the "CurWeapon" event then check to see if they switched to a knife using read_data(2) and comparing it to CSW_KNIFE

Example:

Code:
new wpn = read_data(2)
if(wpn == CSW_KNIFE)
     doStuff(id)
__________________
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
 



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 23:42.


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