[ISTEK] El Sonu Glow
Gönderilme zamanı: Pzt Ağu 15, 2016 12:31 pm
Ben El Sonu Glow Plugininde ;
Açık Kırmızı
Açık Mavi
Açık Yeşil
Açık Mor
Açık Lacivert
Açık Turuncu
Renklerin Olmasını İstiyorum
Açık Kırmızı
Açık Mavi
Açık Yeşil
Açık Mor
Açık Lacivert
Açık Turuncu
Renklerin Olmasını İstiyorum
Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */
#include < amxmodx >
#include < amxmisc >
#include < fun >
#define PLUGIN "Rastgele Glow"
#define VERSION "1.0"
#define AUTHOR "Pandora"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent( "logevent_round_end", 2, "1=Round_End" );
register_logevent( "logevent_round_start", 2, "1=Round_Start" );
}
public logevent_round_start( id ) {
remove_task( 1337 );
set_task( 0.2, "OffGlow" );
}
public logevent_round_end( id ) {
set_task( 0.5, "OnGlow", 1337, "", 0, "b" );
}
public OnGlow( id ) {
new players[ 32 ], xnum;
get_players( players, xnum, "ah" );
for( new x = 0; x < xnum; x++ ) {
new x1 = random_num( 0, 255 );
new x2 = random_num( 0, 255 );
new x3 = random_num( 0, 255 );
new xAlpha = random_num( 40, 65 );
message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
write_short( ~0 );
write_short( ~0 );
write_short( 1<<12 );
write_byte( x1 );
write_byte( x2 );
write_byte( x3 );
write_byte( xAlpha );
message_end( );
set_user_rendering( players[ x ], kRenderFxGlowShell, x1, x2, x3, kRenderTransAlpha, 255 );
}
}
public OffGlow( id ) {
new players[ 32 ], xnum;
get_players( players, xnum, "h" );
for( new x = 0; x < xnum; x++ ) {
message_begin( MSG_ONE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, players[ x ] );
write_short( ~0 );
write_short( ~0 );
write_short( 1<<12 );
write_byte( 0 );
write_byte( 0 );
write_byte( 0 );
write_byte( 0 );
message_end( );
set_user_rendering( players[ x ] );
}
}