Raised This Month: $ Target: $400
 0% 

Flashbang effect time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-17-2013 , 15:26   Re: Flashbang effect time
Reply With Quote #4

PHP Code:
#include <fakemeta>

const m_flFlashedUntil 514

is_user_flashed
id )
{
    return 
get_gametime() < get_pdata_float(idm_flFlashedUntil)

Also, do never use tasks to set cooldowns, use float vars and get_gametime, or integer vars and get_systime().
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-17-2013 at 15:27.
ConnorMcLeod 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:42.


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