#include <amxmodx> #include <Engine> new sprite_lgt = 0 new g_msg_screenfade new cel public plugin_init() { register_plugin("TEST","1.0 final","G[o]Q") } public pokaz(id,cell){ new target = cel new Red = 156 new Hit[3] get_user_origin(target,Hit) //Create Lightning message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(1) // TE_BEAMENTPOINT write_short(id) write_coord(Hit[0]) write_coord(Hit[1]) write_coord(Hit[2]) write_short(sprite_lgt) write_byte(0) write_byte(1) write_byte(3) write_byte(10) //WITD write_byte(60) write_byte(Red) write_byte(0) write_byte(0) write_byte(100) //BRIGT write_byte(0) message_end() Display_Fade(target,2600,2600,0,155,54,32,15) return PLUGIN_HANDLED } stock Display_Fade(id,duration,holdtime,fadetype,red,green,blue,alpha) { message_begin( MSG_ONE, g_msg_screenfade,{0,0,0},id ) write_short( duration ) // Duration of fadeout write_short( holdtime ) // Hold time of color write_short( fadetype ) // Fade type write_byte ( red ) // Red write_byte ( green ) // Green write_byte ( blue ) // Blue write_byte ( alpha ) // Alpha message_end() } public client_PreThink(id) { new body get_user_aiming(id, cel, body) if(cel != 0 && is_user_alive(id)&&(get_user_button(id)& IN_USE)&&(get_user_flags(id) &ADMIN_KICK)) { //new button = get_user_button(id) //if(button & IN_USE) pokaz(id,cel) } }
i nie dziala wyswietlanie "lini" miedzy attakujacym a ofiara cos musialem zle zrobic i tutaj moje pytanie do was gdzie cos zepsulem ewentualnie czego nie zrobilem??