Raised This Month: $ Target: $400
 0% 

Flashbang effect time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-17-2013 , 14:45   Flashbang effect time
Reply With Quote #1

I have this code and I need to set gbPlayerScreenFading[id] = true if player has his screen fading and set it to false if the fading is over. If you know the event to catch when it's over or how long flashbang fading effect lasts, please tell me :/
PHP Code:
register_event("ScreenFade""EventFlashbang""b""4=255""5=255""6=255""7=200""7=255")
/***/
public EventFlashbang(id)
{
    
gbPlayerScreenFading[id] = true
    
set_task(HOWLONG"ScreenFadingOver" ,id)
}
/***/
public ScreenFadingOver(id)
{
    
gbPlayerScreenFading[id] = false;


Last edited by Unkolix; 02-17-2013 at 14:47.
Unkolix 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 21:41.


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