The Best Servar De Cs...GoGoGo!!!


    Team Wins Effects

    Distribuiti

    Admin
    Admin

    Mesaje : 140
    Data de inscriere : 14/04/2012

    Team Wins Effects

    Mesaj  Admin la data de Sam Apr 14, 2012 7:16 am

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


    Nume Plugin: Team Wins Effects
    Autor: x vs N3messy

    Cod:
    #include < amxmodx >
    #include < amxmisc >

    #define EFFECT_LENGTH 3 // timpu cat sa tina efectul

    public plugin_init( )
    {
    register_plugin( "Team Wins Effects", "1.0", "x vs N3messys" ) // www.highcs.ro

    register_event( "SendAudio", "Announce_LinkCS_T", "a", "2=%!MRAD_terwin" )
    register_event( "SendAudio", "Announce_LinkCS_CT", "a", "2=%!MRAD_ctwin" )
    }

    public Announce_LinkCS_T( )
    {
    new players[ 32 ], num, player;
    get_players( players, num, "a" );

    for( new i = 0; i < num; i++ )
    {
    player = players[ i ]

    if( ! is_user_alive( player ) ) return PLUGIN_HANDLED

    msg_screen_fade(player, EFFECT_LENGTH, 175, 0, 0, 115);
    }
    // puiteam baga si eu mesaje si etc doar vezi cat de simple sunt codurile Smile

    return PLUGIN_CONTINUE
    }

    public Announce_LinkCS_CT( )
    {
    new players[ 32 ], num, player;
    get_players( players, num, "a" );

    for( new i = 0; i < num; i++ )
    {
    player = players[ i ]

    if( ! is_user_alive( player ) ) return PLUGIN_HANDLED

    msg_screen_fade(player, EFFECT_LENGTH, 85, 127, 255, 115); // primele 3 culoare effect - vezi fara include-uri ca tine
    }

    return PLUGIN_CONTINUE
    }

    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( );
    }

    stock seconds_to_units( time )
    {
    return ( ( 1 << 12 ) * ( time ) )

      Acum este: Mier Dec 07, 2016 10:19 am