AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ProKreedz 2.27] Transparent Fade to Black in Pause (https://forums.alliedmods.net/showthread.php?t=159610)

loN 06-19-2011 11:19

[ProKreedz 2.27] Transparent Fade to Black in Pause
 
Hello!

I'm very new in this coding(I'm a php programmer, so I can recognize things in pawn as well), so I'd like to ask for some help. I have a self-modified ProKreedz 2.27 by nuclear. So I'd like to modify the Pause function. I made that if you press M(chooseteam) you'll be paused. What I want is that if you in pause, the screen fades to 50% black(transparent) and when you re-press the M button, you'll be unpaused and it fades to normal.

Thanks for the responses in advance!

drekes 06-19-2011 12:42

Re: [ProKreedz 2.27] Transparent Fade to Black in Pause
 
So what exactly do you need help with ?
The black screen, hooking the chooseteam event, unpausing, ... ?

loN 06-19-2011 12:49

Re: [ProKreedz 2.27] Transparent Fade to Black in Pause
 
The pause and the unpause parts are finished, so they're ok. I just want to insert a fade effect when I call the Pause function, and the fade out from black when I re-call the Pause which will be the unpause. I exactly don't know any fade functions and how they work.

drekes 06-19-2011 16:44

Re: [ProKreedz 2.27] Transparent Fade to Black in Pause
 
You can use this stock to make the fade effects, it's a matter of testing & tweaking to get the fade you want.
http://forums.alliedmods.net/showthr...til+Screenfade


And this to install the include if you don't already know how that works
http://forums.alliedmods.net/showthread.php?t=130511

loN 06-19-2011 17:08

Re: [ProKreedz 2.27] Transparent Fade to Black in Pause
 
I know how to compile, that's not a problem. I have this stock, I installed it, but I haven't messed around with it yet. I think it's time to... Thanks for your reply by the way.


All times are GMT -4. The time now is 23:28.

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