#include <amxmodx> #define PLUGIN "Colored Flashbangs" #define VERSION "1.0" #define AUTHOR "v3x" new g_nMsgScreenFade public plugin_init() { register_plugin(PLUGIN,VERSION,AUTHOR) new hours; time(hours); if(hours >= 19 || hours <= 6){ register_event("ScreenFade","FlashedEvent","be","4=255","5=255","6=255","7>199") g_nMsgScreenFade = get_user_msgid("ScreenFade") } } public FlashedEvent( id ) { message_begin( MSG_ONE,g_nMsgScreenFade,{0,0,0},id ) write_short( read_data( 1 ) ) // Duration write_short( read_data( 2 ) ) // Hold time write_short( read_data( 3 ) ) // Fade type write_byte ( 0 ) // Red write_byte ( 0 ) // Green write_byte ( 0 ) // Blue write_byte ( read_data( 7 ) ) // Alpha message_end() return PLUGIN_HANDLED }
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse