Raised This Month: $ Target: $400
 0% 

Please tell me how to do it


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Apokalipsisa
Member
Join Date: May 2012
Old 09-04-2012 , 17:08   Please tell me how to do it
Reply With Quote #1

Hello guys,i have a new question.I used CSX to check if player defuse the bomb.But how can i make something like that:

If player is defusing the bomb to work some code,if player stop defusing to work another code.How to do it?I only make that with public bomb_defusing(id).But how to check if player stop defusing?And i want to ask you another question too.Is it better to use loop with get_players for this function(public bomb_defusing()) or i dont have to use,becouse she can give me ID public bomb_defusing(id).
Apokalipsisa is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-05-2012 , 00:23   Re: Please tell me how to do it
Reply With Quote #2

Code:
if(pev(id, pev_buttons) & IN_USE)
    // user is holding e (currently defusing bomb)
Use that in combination with some flag set in bomb_defusing
That is assuming that bomb_defusing is only fired once. I'd put print statements in that forward to see how it works in real time.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz 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 08:13.


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