Dim a user's screen
How would you go about dimming the user's screen as if they were wearing sun glasses?
|
Code:
|
Thanks GHW :)
|
I'm new to amxx, can you explain what this stuff does?
Code:
|
the first short is the duration. the second is the hold time. these are in special format, basically ~0 means maximum. the third short is the flags. the following are available, just define these at the top of your script.
Code:
if you define those then you can use multiple flags like so: Code:
|
Also i do not see the reason why it's necessary to repeat that every 0.1 second. It could be a problem and maybe even reliable overflow. To overwrite default screen you can just hook ScreenFade event and execute your function.
|
with
Code:
Does it work across plugins? Such as if in one plugin, a user types /fadered Code:
And in another plugin, /fadeoff Code:
Would that stay red until a user types /fadeoff? |
yes, unless another ScreenFade message is sent from somewhere else.
|
| All times are GMT -4. The time now is 20:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.