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ć ???