Raised This Month: $32 Target: $400
 8% 

Screen Fade And Freeze Time Team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gh05t04
Senior Member
Join Date: Jul 2015
Old 09-07-2015 , 16:48   Screen Fade And Freeze Time Team
Reply With Quote #1

Hello guys, I'm loking for a code that can Screen Fade to Black for 60 seconds and Freeze for CT Team, can someone help me, this is what I've got so far:

For Screen Fade to Black 60 seconds:
Problem: It only fades for 15 or 20 seconds...

PHP Code:
my_funcid ); 
PHP Code:
public my_func(id)
{
    new 
players[32], inum
    get_players
(players,inum,"aceh","CT");
    for (new 
0inuma++)
    
make_ScreenFade(players[a], 60.0000255);

PHP Code:
make_ScreenFade(plrFloat:fDurationredgreenbluealpha)
{
    new 
plr plr get_player();
    if( !
)
    {
        return 
0;
    }
    
    
message_begin(plr MSG_ONE MSG_ALLg_msgScreenFade, {000}, plr);
    
write_short(floatround(4096.0 fDurationfloatround_round));
    
write_short(floatround(4096.0 fDurationfloatround_round));
    
write_short(4096);
    
write_byte(red);
    
write_byte(green);
    
write_byte(blue);
    
write_byte(alpha);
    
message_end();
    
    return 
1;
}

get_player()
{
    for( new 
plr 1plr <= g_max_clientsplr++ )
    {
        if( 
is_user_connected(plr) )
        {
            return 
plr;
        }
    }
    
    return 
0;

For the Freeze Time Team I use:
Problem: It freezes but if I change to another weapon, I can move then it freezes me again.

PHP Code:
set_pev(ipev_maxspeed0.00001
But it wont work! Both..
Gh05t04 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-08-2015 , 04:51   Re: Screen Fade And Freeze Time Team
Reply With Quote #2

To freeze someone set FL_FROZEN flag. Speed is reset when you change weapons, so you need to also hook Ham_Item_PreFrame and set the speed there if you want it to work correctly.
__________________

Last edited by HamletEagle; 09-08-2015 at 04:51.
HamletEagle is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 09-08-2015 , 07:50   Re: Screen Fade And Freeze Time Team
Reply With Quote #3

in the zombie plague section i posted a no lag night vision code for zp, you can use the code from there for a permanent screenfade, and just reset it to normal after 60 second
about the speed, look for the frost nade or for the maxspeed api of mercylez, the best would be the frost nade since from what i know it is setting velocity instead of speed, so when it resets it wont mess up the alterated speed from other plugins

Last edited by Depresie; 09-08-2015 at 07:53.
Depresie is offline
Reply


Thread Tools
Display Modes

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 19:53.


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