Raised This Month: $51 Target: $400
 12% 

ScreenFade black Random !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 05-09-2016 , 14:04   ScreenFade black Random !
Reply With Quote #1

Hi !
i want make ScreenFade random btw black and normale screen in 0.1 sec
like this video
https://www.youtube.com/watch?featur...&v=RB2fdxZq41A
PHP Code:
public ScreenBlack(id
{
    
message_begin(MSG_ALL,get_user_msgid("ScreenFade"),{0,0,0},id
    
write_short(1<<15)
    
write_short(1<<13)
    
write_short(1<<12
    
write_byte
    
write_byte
    
write_byte
    
write_byte255 
    
message_end()

__________________

Last edited by abdobiskra; 05-10-2016 at 03:00.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-09-2016 , 16:31   Re: ScreenShake Random !
Reply With Quote #2

LOL, fcking nice idea, i'll try make it, lol
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
wEEk
Senior Member
Join Date: Sep 2012
Old 05-09-2016 , 18:04   Re: ScreenShake Random !
Reply With Quote #3

Show this:

PHP Code:
public crazy(taskid)
{
    new 
id taskid 231687
    
    
new Float:fVec[3];
    
fVec[0] = random_float(MIN MAX);
    
fVec[1] = random_float(MIN MAX);
    
fVec[2] = random_float(MIN MAX);
    
entity_set_vector(id EV_VEC_punchangle fVec);
    
message_begin(MSG_ONE gMsgScreenShake , {0,0,0} ,id)
    
write_short1<<14 );
    
write_short1<<14 );
    
write_short1<<14 );
    
message_end();

    
message_begin(MSG_ONE_UNRELIABLE gMsgScreenFade , {0,0,0} , id);
    
write_short1<<10 );
    
write_short1<<10 );
    
write_short1<<12 );
    
write_byterandom_num(0,255) );
    
write_byterandom_num(0,255) );
    
write_byterandom_num(0,255) );
    
write_byte95 );
    
message_end();

__________________
Aprendiendo de nadie
wEEk is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-09-2016 , 18:24   Re: ScreenShake Random !
Reply With Quote #4

1. #include <engine>
2. gMsgScreenShake = get_user_msgid("ScreenShake")
3. gMsgScreenFade = get_user_msgid("ScreenFade")

For no error.

MAX and MIN in random_float you add what you want, i think the 0.0 and 130.0 is the beast.


Edit: I made it i got it
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-09-2016 at 20:39.
EFFx is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 05-10-2016 , 03:05   Re: ScreenFade black Random !
Reply With Quote #5

wEEk

your code not complet !
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-10-2016 , 08:16   Re: ScreenFade black Random !
Reply With Quote #6

I made abdobiskra, pm me
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 05-10-2016 , 17:30   Re: ScreenFade black Random !
Reply With Quote #7

bump !
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
Reply



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 02:36.


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