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:
public my_func(id)
{
new players[32], inum
get_players(players,inum,"aceh","CT");
for (new a = 0; a < inum; a++)
make_ScreenFade(players[a], 60.0, 0, 0, 0, 255);
}
PHP Code:
make_ScreenFade(plr, Float:fDuration, red, green, blue, alpha)
{
new i = plr ? plr : get_player();
if( !i )
{
return 0;
}
message_begin(plr ? MSG_ONE : MSG_ALL, g_msgScreenFade, {0, 0, 0}, plr);
write_short(floatround(4096.0 * fDuration, floatround_round));
write_short(floatround(4096.0 * fDuration, floatround_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 = 1; plr <= g_max_clients; plr++ )
{
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(i, pev_maxspeed, 0.00001)
But it wont work! Both..