real_flashbang
Abes Mapper
05.02.2008
Ściągnąłem sobie plugin: real_flashbang LINK: http://forums.allied... ... 241&page=7
Tylko teraz taka prośba. Bo jak mnie oślepi to jest na czarno. Co tu zmienić żeby oślepiało na biało ???
Co trzeba zmienić ???
Tylko teraz taka prośba. Bo jak mnie oślepi to jest na czarno. Co tu zmienić żeby oślepiało na biało ???
#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 <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' />
Co trzeba zmienić ???
Miczu
05.02.2008
podbno zle to nie zasmiecam <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cwaniak.gif' class='bbc_emoticon' alt=':]' />
moze to zadziala
a jak nie to zrob w swoim by:
iRed = 100
iGreen = 100
iBlue = 100
rownaly sie 0 lub 255 (nie jestem pewny)
Abes Mapper
05.02.2008
teraz to plugin nie działa :-/
No gdzieś musi się dać ....
Zrobiłem kopie zapasową i teraz wgrałem to co miałem wczesniej
tam daje: amx_fb_g 0
amx_fb_r 0
amx_fb_b 0
Bo normalnie jest na 1. Jak dałem te wszystkie na 0 to już było jaśniej ale i tak szaro. A ja bym chciał biało
No gdzieś musi się dać ....
Zrobiłem kopie zapasową i teraz wgrałem to co miałem wczesniej
tam daje: amx_fb_g 0
amx_fb_r 0
amx_fb_b 0
Bo normalnie jest na 1. Jak dałem te wszystkie na 0 to już było jaśniej ale i tak szaro. A ja bym chciał biało
Miczu
05.02.2008
register_event("ScreenFade","FlashedEvent","be","4=255","5=255","6=255","7>255")
Sprobuj tego, to moze pomoze :-P
PS. szkoda ze nie wkleiles calego pluga :roll:
Sprobuj tego, to moze pomoze :-P
PS. szkoda ze nie wkleiles calego pluga :roll:
Abes Mapper
06.02.2008
Nic... Pewno tak jest zrobiony że się nie da przerobić. Dobra. Muszę się pomęczyć z czarnym. Teraz chce pomoc w : http://amxx.pl/viewtopic.php?t=238
Chodzi o ten zje**** chat.
Chodzi o ten zje**** chat.
Abes Mapper
06.02.2008
Jak nie wiesz o co chodzi to się nie odzywaj :mrgreen: :mrgreen:
Nabijaczu postów! :-P
Nabijaczu postów! :-P
Miczu
06.02.2008
Bielszego nie zrobie ;-)
#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>255") g_nMsgScreenFade = get_user_msgid("ScreenFade") // Cvars register_cvar("amx_fb_mode", "1") register_cvar("amx_fb_r", "0") register_cvar("amx_fb_g", "0") register_cvar("amx_fb_b", "0") } 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 <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.gif' class='bbc_emoticon' alt=':)' /> }
Abes Mapper
06.02.2008
Testowałeś to ?? :mrgreen: :mrgreen: Nie działa :-/ Mówie już się pomęcze z tym czarnym ale pomóż mi z CHATEM (say) :-P :-P
Miczu
06.02.2008
O to chodzi ze wzielem z alliedmods i przetestowalem :mrgreen:
Dziala jak ma dzialac ;-)
PS. U mnie dziala bez zadnych cvarow (all domyslne).
Dziala jak ma dzialac ;-)
PS. U mnie dziala bez zadnych cvarow (all domyslne).
Abes Mapper
06.02.2008
Może ja coś spier****** ????? Czekaj zaraz zobacze...
POMÓŻ MI Z CHATEM!!! :mrgreen: :mrgreen: :mrgreen:
POMÓŻ MI Z CHATEM!!! :mrgreen: :mrgreen: :mrgreen:
Seba 06.02.2008
Zamiast
;x
register_cvar("amx_fb_r", "0")
register_cvar("amx_fb_g", "0")
register_cvar("amx_fb_b", "0")
register_cvar("amx_fb_r", "255")
register_cvar("amx_fb_g", "255")
register_cvar("amx_fb_b", "255")
;x
Miczu
06.02.2008
Zamiast
register_cvar("amx_fb_r", "0")
register_cvar("amx_fb_g", "0")
register_cvar("amx_fb_b", "0")register_cvar("amx_fb_r", "255")
register_cvar("amx_fb_g", "255")
register_cvar("amx_fb_b", "255")
;x
Seba chcialem udowadnic ci ze w tedy bylo by czarne, ale z testow wyszlo cos zabawnego :shock:
Plug co wczesniej mial jakies efekty teraz w ogóle mi nie dziala :evil: zal.pl
Abes_Ziomal sciagnij sobie .amxx z alien moda i ustaw cvar tak jak pisze seba na 255
Abes Mapper
07.02.2008
YEAH!!!!!!!!!!!!!
DZIAŁA!!!!!!!!!! :mrgreen: :mrgreen: :mrgreen: :mrgreen:
Dzięki Wam Serdeczne : Miczu i Seba.
Teraz chodźcie rozwiążemy problem z moim chatem (say)
http://amxx.pl/viewtopic.php?t=238
DZIAŁA!!!!!!!!!! :mrgreen: :mrgreen: :mrgreen: :mrgreen:
Dzięki Wam Serdeczne : Miczu i Seba.
Teraz chodźcie rozwiążemy problem z moim chatem (say)
http://amxx.pl/viewtopic.php?t=238
Seba 07.02.2008
Miczu ale ja nie wiem o co się rozchodzi ;x podałem mu tylko cvary aby z rgb wyszedł biały
Abes_Ziomal, trudno aby nie działało ;/
Abes_Ziomal, trudno aby nie działało ;/
Miczu
07.02.2008
Chodzi o to ze ja probowalem rozwiazac problem zmieniajac .sma i tak jak Abes_Ziomal mi nie dzialal (ale myslalem ze po prostu dobra zmiane zrobilem ze wyszedl bialy :oops: ).Miczu ale ja nie wiem o co się rozchodzi ;x podałem mu tylko cvary aby z rgb wyszedł biały