Raised This Month: $ Target: $400
 0% 

Flashbang Duration


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sgtbane
Member
Join Date: Feb 2006
Old 02-07-2009 , 19:57   Flashbang Duration
Reply With Quote #1

I am trying to get the duration and hold time so I can find out how long they are flashed for and at what level. I am guessing hold time is how long it will stay at the intensity it originally flashed at, and that the duration is the total length that your screen will be 'faded'. My only problem is that I am getting some strange numbers for the duration and the hold time.
Something along the lines of
Duration:1000-2400, Hold Time:600-1300
I don't think its in ms, because i don't remember ever being flashed for 24 sec, or even 13 for that matter...
any help as to what these numbers are displayed as? ive looked into a couple other plugins and scanned the forums but for the most part people just alter the colors when hooking this event.
PHP Code:
public plugin_init() {  
    
register_plugin("1","2","3")
    
register_event("ScreenFade",     "Event_Blinded",     "be""4=255""5=255""6=255""7>199"
    return 
PLUGIN_CONTINUE  
}
public 
Event_Blinded(id) {
    
client_print(idprint_chat"Duration:%i   Hold Time:%i   Alpha:%i"read_data(1), read_data(2), read_data(7))
    return 
PLUGIN_CONTINUE

__________________
[Add|Community]

~SgtBane
sgtbane is offline
Send a message via MSN to sgtbane
 



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


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