Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ScreenFade(victim, 1, 1, color, 170, 1)
- stock ScreenFade(id, Timer, FadeTime, Colors[3], Alpha, type) {
- if(id) if(!is_user_connected(id)) return
- if (Timer > 0xFFFF) Timer = 0xFFFF
- if (FadeTime <= 0) FadeTime = 4
- message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, get_user_msgid("ScreenFade"), _, id);
- write_short(Timer * 1 << 12)
- write_short(FadeTime * 1 << 12)
- switch (type) {
- case 1: write_short(0x0000) // IN ( FFADE_IN )
- case 2: write_short(0x0001) // OUT ( FFADE_OUT )
- case 3: write_short(0x0002) // MODULATE ( FFADE_MODULATE )
- case 4: write_short(0x0004) // STAYOUT ( FFADE_STAYOUT )
- default: write_short(0x0001)
- }
- write_byte(Colors[0])
- write_byte(Colors[1])
- write_byte(Colors[2])
- write_byte(Alpha)
- message_end()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement