Raised This Month: $ Target: $400
 0% 

Defuse Trigger Or Event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WDUK
Senior Member
Join Date: Aug 2004
Location: Great Britain
Old 09-09-2004 , 17:04   Defuse Trigger Or Event
Reply With Quote #1

What event would it be when a CT is about to defuse? Because i'm writing a plugin which would do something when a CT attempts to defuse. When a CT starts to defuse I want to check if they are using a defuse kit.
I suppose it would involve 'register_event' for the defuse part then 'cs_get_user_defuse'.
__________________
R.E.M Gig 2005
Done by VH2
Lancashire Cricket Ground
I'm There!
WDUK is offline
Send a message via MSN to WDUK
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 09-10-2004 , 00:49  
Reply With Quote #2

is there such an event?
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-10-2004 , 08:17  
Reply With Quote #3

yep ur on the right track. Now to get the eactual even why not print out all data that is getting called when the player is defusing so u can learn how to find out information and ull now what even it is.
Freecode is offline
WDUK
Senior Member
Join Date: Aug 2004
Location: Great Britain
Old 09-10-2004 , 10:34  
Reply With Quote #4

How would you get that data?
__________________
R.E.M Gig 2005
Done by VH2
Lancashire Cricket Ground
I'm There!
WDUK is offline
Send a message via MSN to WDUK
Votorx
Senior Member
Join Date: Jun 2004
Old 09-10-2004 , 12:48  
Reply With Quote #5

read_data(1) for the first argument send then read_data(2) for the second and so on.
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
WDUK
Senior Member
Join Date: Aug 2004
Location: Great Britain
Old 09-10-2004 , 14:12  
Reply With Quote #6

I'm sorry I don't get what you mean?
__________________
R.E.M Gig 2005
Done by VH2
Lancashire Cricket Ground
I'm There!
WDUK is offline
Send a message via MSN to WDUK
WDUK
Senior Member
Join Date: Aug 2004
Location: Great Britain
Old 09-10-2004 , 16:26  
Reply With Quote #7

I know WC3FT checks if someone is defusing because it gives them XP, but I can't find the event or trigger,
__________________
R.E.M Gig 2005
Done by VH2
Lancashire Cricket Ground
I'm There!
WDUK is offline
Send a message via MSN to WDUK
KRoT@L
Member
Join Date: Aug 2004
Location: http://www.amxmod.net
Old 09-10-2004 , 17:23  
Reply With Quote #8

Found in wc3.sma:

register_event("BarTime", "bomb_defusing", "be", "1=10", "1=5")
KRoT@L is offline
WDUK
Senior Member
Join Date: Aug 2004
Location: Great Britain
Old 09-10-2004 , 17:56  
Reply With Quote #9

Help Needed!
Code:
#include <amxmodx> #include <cstrike> public plugin_init()     register_plugin("Evil Defuse","0.01b","WDUK")     register_event("BarTime", "bomb_defusing","be", "1=10", "1=5")     public bomb_defusing(id){     if(cs_get_user_defuse(id) == 1) {     client_print(0,print_chat,"test") } }

I get an error while compiling:
Code:
Error 021: Symbol already defined 'register_event'
Grr how do I fix it, the plugin atm is just displaying 'Test' when defusing with a kit just to see if it works.
__________________
R.E.M Gig 2005
Done by VH2
Lancashire Cricket Ground
I'm There!
WDUK is offline
Send a message via MSN to WDUK
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-10-2004 , 18:20  
Reply With Quote #10

you just forgot 2 brackets

Code:
#include <amxmodx> #include <cstrike> public plugin_init(){     register_plugin("Evil Defuse","0.01b","WDUK")     register_event("BarTime", "bomb_defusing","be", "1=10", "1=5") }       public bomb_defusing(id){     if(cs_get_user_defuse(id) == 1){         client_print(0,print_chat,"test")         } }
FeuerSturm is offline
Reply



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:12.


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