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

https://discord.gg/43gGDQe6tS

Takim secme engel plugini 2 hata acil destek.

Eklenti sorunlarınız ve özel eklenti istekleriniz

Moderatör: Moderatörler

Kullanıcı avatarı

Konu Sahibi
mr1mr2
Mesajlar: 519
Kayıt: Çrş Oca 24, 2018 1:04 pm
Konum: Ankara
İletişim:

Takim secme engel plugini 2 hata acil destek.

Mesaj gönderen mr1mr2 »

Takim secme engelleme plugininde 2 tane hata veriyor bakabilecek varmidir ?

//cstrike/addons/amxmodx/scripting/chooseteam.sma(25) : warning 217: loose indentation
//cstrike/addons/amxmodx/scripting/chooseteam.sma(27) : warning 217: loose indentation

Kod: Tümünü seç

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "No Team Plugins"
#define VERSION "0.0"
#define AUTHOR "OnR1"
new gCvarPluginToggle

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_concmd("jointeam", "bugfix")
	register_concmd("chooseteam", "bugfix")
	gCvarPluginToggle = register_cvar("amx_block_team", "1")
}

public bugfix(id)
{
         // If the plugin don't get the CVAR, it makes you buy normally. 
    if (!get_pcvar_num(gCvarPluginToggle)) 
        return PLUGIN_CONTINUE; 
     client_color(id, "!yTakim Degistirmek Yasaklanmistir.")
    // Block the buy commands. 
    return PLUGIN_HANDLED;
}
		
stock client_color( const id, const input[ ], any:... )
{
    new count = 1, players[ 32 ]

    static msg[ 191 ]
    vformat( msg, 190, input, 3 )
    
    replace_all( msg, 190, "!y", "^4" ) /* yesil */
    replace_all( msg, 190, "!s", "^1" ) /* sari */
    replace_all( msg, 190, "!t", "^3" ) /* ct=mavi | t=kirmizi */
    replace_all( msg, 190, "!n", "^0" ) /* Normal */
    
    if( id ) players[ 0 ] = id; else get_players( players, count, "ch" )
    {
        for( new i = 0; i < count; i++ )
        {
            if( is_user_connected( players[ i ] ) )
            {
                message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] )
                write_byte( players[ i ] );
                write_string( msg );
                message_end( );
            }
        }
    }
}

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

ShooTeR
Mesajlar: 4496
Kayıt: Çrş Ağu 16, 2017 10:35 pm
Server Ip/DNS: CSXX.CSDURAGI.COM
Clan İsmi: NoMercy

Takim secme engel plugini 2 hata acil destek.

Mesaj gönderen ShooTeR »

Satır hataları calısmasını engellemeyecektir sorunsuz calıstırabilirsiniz.

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

ShooTeR
Mesajlar: 4496
Kayıt: Çrş Ağu 16, 2017 10:35 pm
Server Ip/DNS: CSXX.CSDURAGI.COM
Clan İsmi: NoMercy

Takim secme engel plugini 2 hata acil destek.

Mesaj gönderen ShooTeR »

Yinede duzenle dersen byr

Kod: Tümünü seç

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "No Team Plugins"
#define VERSION "0.0"
#define AUTHOR "OnR1"
new gCvarPluginToggle

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_concmd("jointeam", "bugfix")
	register_concmd("chooseteam", "bugfix")
	gCvarPluginToggle = register_cvar("amx_block_team", "1")
}

public bugfix(id)
{
         // If the plugin don't get the CVAR, it makes you buy normally. 
    if (!get_pcvar_num(gCvarPluginToggle)) 
    return PLUGIN_CONTINUE; 
    client_color(id, "!yTakim Degistirmek Yasaklanmistir.")
    // Block the buy commands. 
    return PLUGIN_HANDLED;
}
		
stock client_color( const id, const input[ ], any:... )
{
    new count = 1, players[ 32 ]

    static msg[ 191 ]
    vformat( msg, 190, input, 3 )
    
    replace_all( msg, 190, "!y", "^4" ) /* yesil */
    replace_all( msg, 190, "!s", "^1" ) /* sari */
    replace_all( msg, 190, "!t", "^3" ) /* ct=mavi | t=kirmizi */
    replace_all( msg, 190, "!n", "^0" ) /* Normal */
    
    if( id ) players[ 0 ] = id; else get_players( players, count, "ch" )
    {
        for( new i = 0; i < count; i++ )
        {
            if( is_user_connected( players[ i ] ) )
            {
                message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] )
                write_byte( players[ i ] );
                write_string( msg );
                message_end( );
            }
        }
    }
}

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

Konu Sahibi
mr1mr2
Mesajlar: 519
Kayıt: Çrş Oca 24, 2018 1:04 pm
Konum: Ankara
İletişim:

Takim secme engel plugini 2 hata acil destek.

Mesaj gönderen mr1mr2 »

tmm tşkrler.

Link:
Linklerini gizle
Linki Kopyala
Cevapla