Flashbang effect time
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:
|
Re: Flashbang effect time
What's about to try while statement.. ?
|
Re: Flashbang effect time
I am not a very good scripter, I more like remaker.
|
Re: Flashbang effect time
PHP Code:
|
Re: Flashbang effect time
This checks if the user is flashed, can you explain the return value? And look is this correct?
PHP Code:
|
Re: Flashbang effect time
This is correct then, return value is self "explanative" :)
Also, cache get_user_msgid("ScreenFade") in plugin_init in a global var ;) |
Re: Flashbang effect time
But I get undefined symbol is_user_flashed, fakemeta was already included
Do I have to write PHP Code:
PHP Code:
|
Re: Flashbang effect time
const m_flFlashedUntil = 514 has to be at top of plugin where you declare other variables, so above plugin_init.
is_user_flashed function can be where you want but has to be somewhere in the plugin if you want to be able to use it. |
Re: Flashbang effect time
Quote:
|
Re: Flashbang effect time
No, this should stay a private function.
Something like that : PHP Code:
|
| All times are GMT -4. The time now is 21:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.