|
Realflash
cheater5 - 31.05.2008 13:22
potrzebuje pluginu ktory oglusza kiedy wybuchnie nam przed oczami flash (+ dzwiek)
podajcie chociaz nazwe to se znajde.
PS ten plugin jest w packu By N3more (280 pluginow) ALE NIE DZIALA
!~* eMo SeBu$ *~! - 31.05.2008 13:58
http://forums.alliedmods.net/showthread.php?p=128351
cheater5 - 31.05.2008 20:35
chyba mnie zele zrozumiales Seba nie chodzi mi o plugin ktory daje kolorowe flashe tylko o plugin ktory odtwarza dzwiek (ogluszenie) jak nas oslepi flash
!~* eMo SeBu$ *~! - 31.05.2008 20:36
Zajrzyj na kolejne strony...
cheater5 - 02.06.2008 18:15
thx za dobre checi ale byl tam blad
oto czesc sma Kod:
write_short( read_data( 1 ) ) // Duration
write_short( read_data( 1 ) ) // Hold time
write_short( read_data( 3 ) ) // Fade type
write_byte ( iRed ) // Red
write_byte ( iGreen ) // Green
write_byte ( iBlue ) // Blue
write_byte ( read_data( 7 ) ) // Alpha ta linijka
Kod:
write_short( read_data( 1 ) ) // Hold time
powinna wygladac tak
Kod:
write_short( read_data( 2 ) ) // Hold time
bo inaczej jest podwojnie dlugie oslepienie
a jeszcze co s jak zmienic kolor na bialy z czarnego
oto sma:
Kod:
#include <amxmodx>
#define PLUGIN "Real Flashbang"
#define VERSION "0.2"
#define AUTHOR "v3x / VoivoD"
new g_nMsgScreenFade
new g_fbfx
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("ScreenFade","FlashedEvent","be","4=255","5=255","6=255","7>199")
g_nMsgScreenFade = get_user_msgid("ScreenFade")
// Cvars
register_cvar("amx_fb_mode", "1")
register_cvar("amx_fb_r", "2")
register_cvar("amx_fb_g", "1")
register_cvar("amx_fb_b", "1")
}
public plugin_precache()
{
precache_sound("voi/flashbanged2.wav")
precache_sound("voi/breathe_voi.wav")
precache_sound("voi/heartbeat_voi.wav")
}
public FlashedEvent( id )
{
new iMode = get_cvar_num("amx_fb_mode")
if ( !iMode ) return PLUGIN_CONTINUE
new iRed,iGreen,iBlue
switch( iMode )
{
case 1:
{
iRed = get_cvar_num("amx_fb_r")
iGreen = get_cvar_num("amx_fb_g")
iBlue = get_cvar_num("amx_fb_b")
}
case 2:
{
iRed = random_num(0,255)
iGreen = random_num(0,255)
iBlue = random_num(0,255)
}
}
if ( !( iRed ) || !( iGreen ) || !( iBlue ) )
{
iRed = 100
iGreen = 100
iBlue = 100
}
message_begin( MSG_ONE,g_nMsgScreenFade,{0,0,0},id )
write_short( read_data( 1 ) ) // Duration
write_short( read_data( 1 ) ) // Hold time
write_short( read_data( 3 ) ) // Fade type
write_byte ( iRed ) // Red
write_byte ( iGreen ) // Green
write_byte ( iBlue ) // Blue
write_byte ( read_data( 7 ) ) // Alpha
message_end()
client_cmd(id,"spk voi/flashbanged2") //u hear the stunning sound
set_task(1.5,"omgivebeenflashbanged",id) // stunned for this long than u start to wake
return PLUGIN_HANDLED
}
public omgivebeenflashbanged( id ) //you start waking
{
if(g_fbfx==0)
{
client_cmd(id,"spk voi/heartbeat_voi")
client_cmd(id,"spk voi/breathe_voi")
g_fbfx=1 //hmm im stunned, i dont need more
set_task(7.0,"flashstunn_unblocked",id) //the stunned effect is blocked
}
}
public flashstunn_unblocked( id )
{
g_fbfx=0 //hey i want to be stunned again :)
}
[ Dodano: Pon 02 Cze, 2008 ] juz sobie poradzilem z tym kolorem :D
zanotowane.pldoc.pisz.plpdf.pisz.plqup.pev.pl
|