1. sayfa (Toplam 1 sayfa)

Takim secme engel plugini 2 hata acil destek.

Gönderilme zamanı: Pzr Şub 04, 2018 5:37 pm
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( );
            }
        }
    }
}

Takim secme engel plugini 2 hata acil destek.

Gönderilme zamanı: Pzr Şub 04, 2018 5:39 pm
gönderen ShooTeR
Satır hataları calısmasını engellemeyecektir sorunsuz calıstırabilirsiniz.

Takim secme engel plugini 2 hata acil destek.

Gönderilme zamanı: Pzr Şub 04, 2018 5:40 pm
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( );
            }
        }
    }
}

Takim secme engel plugini 2 hata acil destek.

Gönderilme zamanı: Pzr Şub 04, 2018 5:40 pm
gönderen mr1mr2
tmm tşkrler.