Raised This Month: $ Target: $400
 0% 

Flash Block


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolzin123
Member
Join Date: Apr 2009
Old 05-28-2009 , 11:41   Flash Block
Reply With Quote #1

I need the code of the flash block to BCM4, someone help me? THX ^ ^
lolzin123 is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 05-28-2009 , 17:14   Re: Flash Block
Reply With Quote #2

Make this:
PHP Code:
new gMsgScreenFade
Then in plugin_cfg (i think you can do this in plugin_init too, but i'm not sure):
PHP Code:
gMsgScreenFade get_user_msgid("ScreenFade"); 
And heres the flash effect:
PHP Code:
message_begin(MSG_ONE_UNRELIABLEgMsgScreenFade, {0,0,0}, id);    // Message Start
write_short();    // Duration
write_short();    // Hold Time
write_short();    // Fade in/out type
write_byte();    // Red
write_byte();    // Green
write_byte();    // Blue
write_byte();    // Alpha
message_end();    // Message End 

Last edited by zacky; 05-28-2009 at 17:17.
zacky is offline
Send a message via Skype™ to zacky
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-29-2009 , 02:11   Re: Flash Block
Reply With Quote #3

Quote:
Originally Posted by zacky View Post
Then in plugin_cfg (i think you can do this in plugin_init too, but i'm not sure)
Yes you can do in plugin_init too.
__________________
xPaw is offline
lolzin123
Member
Join Date: Apr 2009
Old 05-29-2009 , 16:45   Re: Flash Block
Reply With Quote #4

How i can add this code for a block?Any idea? (bcm plugin)
lolzin123 is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 05-29-2009 , 17:23   Re: Flash Block
Reply With Quote #5

just add the message_begin in your action.

But you have to make something so it doesnt spam
zacky is offline
Send a message via Skype™ to zacky
lolzin123
Member
Join Date: Apr 2009
Old 05-29-2009 , 17:31   Re: Flash Block
Reply With Quote #6

what? im tryng to add this code to a block, can you help me?
lolzin123 is offline
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 05-30-2009 , 00:44   Re: Flash Block
Reply With Quote #7

He have.
Quote:
Originally Posted by zacky View Post
Make this:
PHP Code:
new gMsgScreenFade
Then in plugin_cfg (i think you can do this in plugin_init too, but i'm not sure):
PHP Code:
gMsgScreenFade get_user_msgid("ScreenFade"); 
And heres the flash effect:
PHP Code:
message_begin(MSG_ONE_UNRELIABLEgMsgScreenFade, {0,0,0}, id);    // Message Start
write_short();    // Duration
write_short();    // Hold Time
write_short();    // Fade in/out type
write_byte();    // Red
write_byte();    // Green
write_byte();    // Blue
write_byte();    // Alpha
message_end();    // Message End 
micke1101 is offline
lolzin123
Member
Join Date: Apr 2009
Old 05-30-2009 , 10:49   Re: Flash Block
Reply With Quote #8

Can you pass the values to blind the player?
lolzin123 is offline
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 05-30-2009 , 11:06   Re: Flash Block
Reply With Quote #9

Post the sma you wanna add this block to.
micke1101 is offline
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 13:52.


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