Discord sunucumuz açılmıştır, hepinizi bekleriz

https://discord.gg/43gGDQe6tS

üst yazı edit

Eklenti sorunlarınız ve özel eklenti istekleriniz

Moderatör: Moderatörler

Kullanıcı avatarı

Konu Sahibi
İmam-POWER
Mesajlar: 1045
Kayıt: Pzr Oca 28, 2018 11:45 pm
Konum: SAMSUNLUYUZ

üst yazı edit

Mesaj gönderen İmam-POWER »

sma'yı 3.satırını attığım ss gıbı yapar mısınız ?
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

BY FURKAN !
Mesajlar: 939
Kayıt: Pzt Tem 09, 2018 9:01 pm
Konum: Türkiye
Server Ip/DNS: CSDuraği
Clan İsmi: CSDuraği

üst yazı edit

Mesaj gönderen BY FURKAN ! »

Bunu kullan çok daha güzel

Kod: Tümünü seç

/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "CSDM Team Score"
#define VERSION "1.0"
#define AUTHOR "By Deh$eT"

stock __dhud_color;
stock __dhud_x;
stock __dhud_y;
stock __dhud_effect;
stock __dhud_fxtime;
stock __dhud_holdtime;
stock __dhud_fadeintime;
stock __dhud_fadeouttime;
stock __dhud_reliable;

new g_tscore = 0
new g_ctscore = 0
new rounds_elapsed
new g_map[32]


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_event( "SendAudio", "t_win", "a", "2&%!MRAD_terwin" );
    register_event( "SendAudio", "ct_win", "a", "2&%!MRAD_ctwin" );
    set_task (0.6,"score_round",_,_,_,"b")
    register_event("HLTV", "new_round", "a", "1=0", "2=0");
    register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
    get_mapname(g_map, 31)
}
public new_round()
{
    rounds_elapsed += 1;
}

public t_win( )
{
   g_tscore++;
}

public ct_win( )
{
   g_ctscore++;
}

public plugin_end( )
{
   g_tscore = 0
   g_ctscore = 0
   
}
public restart_round()
{
    rounds_elapsed = 0;     
}

public score_round()
{
    set_dhudmessage(175, 175, 175, -1.0, 0.02, 0, 0.5, 2.0, 0.08, 3.0, true);
    show_dhudmessage(0,"| EL: %d | Harita: %s |^n|[TE:%d] | [CT:%d]|", rounds_elapsed, g_map,g_tscore,g_ctscore);        
}

stock set_dhudmessage( red = 0, green = 160, blue = 0, Float:x = -1.0, Float:y = 0.65, effects = 2, Float:fxtime = 0.6, Float:holdtime = 0.6, Float:fadeintime = 0.6, Float:fadeouttime = 0.6, bool:reliable = false )
{
#define clamp_byte(%1)       ( clamp( %1, 0, 255 ) )
#define pack_color(%1,%2,%3) ( %3 + ( %2 << 8 ) + ( %1 << 16 ) )

__dhud_color       = pack_color( clamp_byte( red ), clamp_byte( green ), clamp_byte( blue ) );
__dhud_x           = _:x;
__dhud_y           = _:y;
__dhud_effect      = effects;
__dhud_fxtime      = _:fxtime;
__dhud_holdtime    = _:holdtime;
__dhud_fadeintime  = _:fadeintime;
__dhud_fadeouttime = _:fadeouttime;
__dhud_reliable    = _:reliable;

return 1;
}

stock show_dhudmessage( index, const message[], any:... )
{
new buffer[ 128 ];
new numArguments = numargs();

if( numArguments == 2 )
{
    send_dhudMessage( index, message );
}
else if( index || numArguments == 3 )
{
    vformat( buffer, charsmax( buffer ), message, 3 );
    send_dhudMessage( index, buffer );
}
else
{
    new playersList[ 32 ], numPlayers;
    get_players( playersList, numPlayers, "ch" );
    
    if( !numPlayers )
    {
        return 0;
    }
    
    new Array:handleArrayML = ArrayCreate();
    
    for( new i = 2, j; i < numArguments; i++ )
    {
        if( getarg( i ) == LANG_PLAYER )
        {
            while( ( buffer[ j ] = getarg( i + 1, j++ ) ) ) {}
            j = 0;
            
            if( GetLangTransKey( buffer ) != TransKey_Bad )
            {
                ArrayPushCell( handleArrayML, i++ );
            }
        }
    }
    
    new size = ArraySize( handleArrayML );
    
    if( !size )
    {
        vformat( buffer, charsmax( buffer ), message, 3 );
        send_dhudMessage( index, buffer );
    }
    else
    {
        for( new i = 0, j; i < numPlayers; i++ )
        {
            index = playersList[ i ];
            
            for( j = 0; j < size; j++ )
            {
                setarg( ArrayGetCell( handleArrayML, j ), 0, index );
            }
            
            vformat( buffer, charsmax( buffer ), message, 3 );
            send_dhudMessage( index, buffer );
        }
    }
    
    ArrayDestroy( handleArrayML );
}

return 1;
}

stock send_dhudMessage( const index, const message[] )
{
message_begin( __dhud_reliable ? ( index ? MSG_ONE : MSG_ALL ) : ( index ? MSG_ONE_UNRELIABLE : MSG_BROADCAST ), SVC_DIRECTOR, _, index );
{
write_byte( strlen( message ) + 31 );
write_byte( DRC_CMD_MESSAGE );
write_byte( __dhud_effect );
write_long( __dhud_color );
write_long( __dhud_x );
write_long( __dhud_y );
write_long( __dhud_fadeintime );
write_long( __dhud_fadeouttime );
write_long( __dhud_holdtime );
write_long( __dhud_fxtime );
write_string( message );
}
message_end();
}
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

Konu Sahibi
İmam-POWER
Mesajlar: 1045
Kayıt: Pzr Oca 28, 2018 11:45 pm
Konum: SAMSUNLUYUZ

üst yazı edit

Mesaj gönderen İmam-POWER »

reis istediğim gibi yapılamaz mı eklenti ?

@ShooTeR
@Taha Demirbaş
@Fatih ~ EjderYa

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

ulyoS
Mesajlar: 4526
Kayıt: Cum Ara 16, 2016 2:14 pm
Konum: İzmir

üst yazı edit

Mesaj gönderen ulyoS »

dene
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.

Link:
Linklerini gizle
Linki Kopyala
Kullanıcı avatarı

ulyoS
Mesajlar: 4526
Kayıt: Cum Ara 16, 2016 2:14 pm
Konum: İzmir

üst yazı edit

Mesaj gönderen ulyoS »

Konu kapanabilir yapıldı.
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.

Link:
Linklerini gizle
Linki Kopyala
Cevapla