Jump to content
Aplicatiile pentru functia de "Helper" pentru serverul de Minecraft sunt deschise !

Team Wins Effects


Guest Alex

Recommended Posts

Descriere: la sfarsit de runda ecranul jucatorului se va face CT = albastru , T = Rosu

Nume Plugin: Team Wins Effects

Autor: x vs N3messy

Link oficial: HighCS.Ro

#include < amxmodx >#include < amxmisc >[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]#define EFFECT_LENGTH 3 // timpu cat sa tina efectul[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]public plugin_init( ){   register_plugin( "Team Wins Effects", "1.0", "x vs N3messys" ) // www.highcs.ro[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]   register_event( "SendAudio", "Announce_LinkCS_T", "a", "2=%!MRAD_terwin" )   register_event( "SendAudio", "Announce_LinkCS_CT", "a", "2=%!MRAD_ctwin" )}[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]public Announce_LinkCS_T( ){	    new players[ 32 ], num, player;	    get_players( players, num, "a" );[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]	    for( new i = 0; i < num; i++ )	    {  			 player = players[ i ][/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]			 if( ! is_user_alive( player ) ) return PLUGIN_HANDLED[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]	    msg_screen_fade(player, EFFECT_LENGTH, 175, 0, 0, 115);	    }	    // puiteam baga si eu mesaje si etc doar vezi cat de simple sunt codurile :) [/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]	    return PLUGIN_CONTINUE}[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]public Announce_LinkCS_CT( ){	    new players[ 32 ], num, player;	    get_players( players, num, "a" );[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]	    for( new i = 0; i < num; i++ )	    {  			 player = players[ i ][/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]			 if( ! is_user_alive( player ) ) return PLUGIN_HANDLED[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]	    msg_screen_fade(player, EFFECT_LENGTH, 85, 127, 255, 115); // primele 3 culoare effect - vezi fara include-uri ca tine	    }[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]	    return PLUGIN_CONTINUE}[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]stock msg_screen_fade( id, holdtime, r, g, b, a ){   message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "ScreenFade" ), { 0, 0, 0 }, id );   write_short( seconds_to_units( holdtime ) );   write_short( seconds_to_units( holdtime ) );   write_short( 0 );   write_byte( r );   write_byte( g );   write_byte( b );   write_byte( a );   message_end( );}[/size][/color][/font][font="'Lucida Grande"][color="#000000"][size=3]stock seconds_to_units( time ){   return ( ( 1 << 12 ) * ( time ) )}[/CODE]

[/size][/color][/font]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...