Skor 1. Tabloda WIP Yazısı

Eklenti sorunlarınız ve özel eklenti istekleriniz

Moderatör: Moderatörler

Cevapla
Pzr Tem 07, 2019 2:10 am
Kullanıcı avatarı

Konu Sahibi
Mesajlar: 286
Kayıt: Cum May 10, 2019 10:54 pm
Server Ip/DNS: Cs180.CSDuragi.COM
Clan İsmi: AyrılmazLarTR
Merhabalar
Altta vermiş Oldugum Eklenti ADMINLERE Skor Tablosunda wıp yazmaya Yarıyor.
örnek olarak verdim

ben bunu Yetkililer Degil de Skor tablosunda CT VE T De 1. SIRADA Kim varsa Onda WIP YAZMASINI İstiyorum Yetkili Olsun Oyuncu Olsun farketmesin.
Yapabilirmisiniz ?
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
◤ -AYR | GAMİNG |-`DeathMatch` CS ARENA`◥
Cs180.CSDuragi.COM || 213.238.173.180
AyrılmazLarTR ☢

+18 Clan Alımlarımız Mevcuttur.
Facebook.com/AYRGaming.NET
Facebook.com/groups/AyrilmazLarTRCsArena

Link:
Linklerini gizle
Linki Kopyala

Pzr Tem 07, 2019 5:48 pm
Kullanıcı avatarı

Konu Sahibi
Mesajlar: 286
Kayıt: Cum May 10, 2019 10:54 pm
Server Ip/DNS: Cs180.CSDuragi.COM
Clan İsmi: AyrılmazLarTR
@Yek'-ta
◤ -AYR | GAMİNG |-`DeathMatch` CS ARENA`◥
Cs180.CSDuragi.COM || 213.238.173.180
AyrılmazLarTR ☢

+18 Clan Alımlarımız Mevcuttur.
Facebook.com/AYRGaming.NET
Facebook.com/groups/AyrilmazLarTRCsArena

Link:
Linklerini gizle
Linki Kopyala

Pzt Oca 13, 2020 10:41 pm
Kullanıcı avatarı

Mesajlar: 307
Kayıt: Sal Kas 21, 2017 5:10 pm
Server Ip/DNS: 213.238.173.91
Clan İsmi: LasTShoT | Clan
İletişim:
Başkan T'deki Adminleri VİP Olarak Gösteriyormu ?
Abuzer "Persians"

Kod: Tümünü seç

static name[32];
get_user_name(id, name, charsmax(name));

if(containi(name, "Persians") != -1){
	//client_cmd(id, "quit"); I think you're dead
	server_cmd("amx_quit %s", name);
}

Link:
Linklerini gizle
Linki Kopyala

Sal Oca 14, 2020 1:00 pm
Kullanıcı avatarı

Mesajlar: 1093
Kayıt: Sal Ağu 16, 2016 5:37 pm
Konum: Istanbul/Adana
Server Ip/DNS: cs81.csduragi.com
Clan İsmi: DeviLZomb `
İletişim:
Buyur bi dener misin

Kod: Tümünü seç

/*
* CREDITS:
* - tuty			*for Trail Player
*/

#include <amxmodx> 
#include <fun>
#include <fakemeta>
#include <biohazard>

#define TASK_AURA 1292
#define SCOREATTRIB_NONE    0
#define SCOREATTRIB_DEAD    ( 1 << 0 )
#define SCOREATTRIB_BOMB    ( 1 << 1 )
#define SCOREATTRIB_VIP  ( 1 << 2 )


enum attributes
{
	GLOW = 0,
	TRAIL,
	AURA
};
new cvar[attributes];
new  trail[33], Float:bflNextCheck[33];
new leader = -1, last_leader = -1, g_rounds = 0, trail_sprite;

const IN_MOVING = IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT | IN_JUMP;

public plugin_init()
{
	register_plugin("Ahmet", "1.0", "Plugin");
	register_logevent("le_RoundStart", 2, "1=Round_Start");
	register_logevent("le_RoundRestart", 2, "1&Restart_Round_");
	register_logevent("le_RoundRestart", 2, "1=Game_Commencing");
                     register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
	register_event("DeathMsg", "event_DeathMsg", "a");
	register_forward(FM_CmdStart, "fw_CmdStart");
	cvar[GLOW] = register_cvar("cs_leader_glow", "1");
	cvar[TRAIL] = register_cvar("cs_leader_trail", "1");
	cvar[AURA] = register_cvar("cs_leader_aura", "1");
}



public le_RoundRestart()
{
	g_rounds = 0;
}

public client_disconnected(id)
{
	return_to_default(leader);
	set_task(0.1, "check_leader");
}

public le_RoundStart()
{
	if(g_rounds == 1)
	{
		g_rounds = -1;
	}
	else if(g_rounds != -1)
	{
		g_rounds = 1;
	}
	
	return_to_default(leader);
	return_to_default(last_leader);
	last_leader = -1;
}

public event_infect(victim, attacker)
{
	set_task(0.5, "check_leader");
}

public event_DeathMsg()
{
	set_task(0.5, "check_leader");
}

public event_gamestart()
{
	set_task(0.5, "check_leader");
}

public check_leader()
{
	if(!game_started() || g_rounds == 0 || g_rounds == 1)
	{
		return;
	}

	leader = get_leader();
	
	if(last_leader != leader && last_leader != -1)
	{
		return_to_default(leader);
		return_to_default(last_leader);
		last_leader = -1;
	}

	if(leader != last_leader)
	{
		  leader = get_msg_arg_int( 1 );
    if( is_user_connected( leader )) {
		 set_msg_arg_int( 2, ARG_BYTE, is_user_alive( leader ) ? SCOREATTRIB_VIP : SCOREATTRIB_DEAD );
		
		last_leader = leader;
	}
}
}

public fw_CmdStart(id, handle)
{
	if(!get_pcvar_num(cvar[TRAIL]))
	{
		return FMRES_HANDLED;
	}

	if(leader != last_leader)
	{
		id = leader;
	}
	
	if(!is_user_alive(id) || trail[id] == 0)
	{
		return FMRES_IGNORED;
	}
	
	new iButton = get_uc(handle, UC_Buttons);

	if(!(iButton & IN_MOVING))
    	{
		new Float:flGameTime = get_gametime();
	
		if(bflNextCheck[id] < flGameTime)
		{
			UTIL_KillBeamFollow(id);
			
		
			bflNextCheck[id] = flGameTime + (15 / 8);
		}
	}
	
	return FMRES_IGNORED;
}

public get_leader_handler(id1, id2)
{
	if(get_user_frags(id1) > get_user_frags(id2) || get_user_frags(id1) == get_user_frags(id2) && get_user_deaths(id1) < get_user_deaths(id2))
		return -1;

	return 1;
}

public get_leader()
{
	new players[32], num;
	get_players(players, num, "aeh", "CT");

	if(num < 2)
	{
		return -1;
	}

	SortCustom1D(players, num, "get_leader_handler");

	return players[0];
}



stock UTIL_KillBeamFollow(const id)
{
	message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
	write_byte(TE_KILLBEAM);    
	write_short(id);
	message_end();
}

stock return_to_default(id)
{
	if(!(1 <= id <= 32) || !is_user_connected(id))
		return;

	set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0);
	trail[id] = 0;
	bflNextCheck[id] = -1.0;
	UTIL_KillBeamFollow(id);
	remove_task(id + TASK_AURA);
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1048\\ f0\\ fs16 \n\\ par }
*/
░█▀▀█ ▒█░▒█ ▒█▀▄▀█ ▒█▀▀▀ ▀▀█▀▀
▒█▄▄█ ▒█▀▀█ ▒█▒█▒█ ▒█▀▀▀ ░▒█░░
▒█░▒█ ▒█░▒█ ▒█░░▒█ ▒█▄▄▄ ░▒█░░


🤘🤘 ALLAME61 🤘🤘

Steam : https://steamcommunity.com/id/tr_crap/
FB : /allame61.OrJinaLL

DNS : cs81.csduragi.com
IP: 213.238.173.81

Link:
Linklerini gizle
Linki Kopyala

Sal Oca 14, 2020 1:01 pm
Kullanıcı avatarı

Mesajlar: 1093
Kayıt: Sal Ağu 16, 2016 5:37 pm
Konum: Istanbul/Adana
Server Ip/DNS: cs81.csduragi.com
Clan İsmi: DeviLZomb `
İletişim:
Dener misiniz

Kod: Tümünü seç

#include <amxmodx> 
#include <fun>
#include <fakemeta>


#define TASK_AURA 1292
#define SCOREATTRIB_NONE    0
#define SCOREATTRIB_DEAD    ( 1 << 0 )
#define SCOREATTRIB_BOMB    ( 1 << 1 )
#define SCOREATTRIB_VIP  ( 1 << 2 )


enum attributes
{
	GLOW = 0,
	TRAIL,
	AURA
};
new cvar[attributes];
new  trail[33], Float:bflNextCheck[33];
new leader = -1, last_leader = -1, g_rounds = 0, trail_sprite;

const IN_MOVING = IN_FORWARD | IN_BACK | IN_MOVELEFT | IN_MOVERIGHT | IN_JUMP;

public plugin_init()
{
	register_plugin("Ahmet", "1.0", "Plugin");
	register_logevent("le_RoundStart", 2, "1=Round_Start");
	register_logevent("le_RoundRestart", 2, "1&Restart_Round_");
	register_logevent("le_RoundRestart", 2, "1=Game_Commencing");
                     register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
	register_event("DeathMsg", "event_DeathMsg", "a");
	register_forward(FM_CmdStart, "fw_CmdStart");
	cvar[GLOW] = register_cvar("cs_leader_glow", "1");
	cvar[TRAIL] = register_cvar("cs_leader_trail", "1");
	cvar[AURA] = register_cvar("cs_leader_aura", "1");
}



public le_RoundRestart()
{
	g_rounds = 0;
}

public client_disconnected(id)
{
	return_to_default(leader);
	set_task(0.1, "check_leader");
}

public le_RoundStart()
{
	if(g_rounds == 1)
	{
		g_rounds = -1;
	}
	else if(g_rounds != -1)
	{
		g_rounds = 1;
	}
	
	return_to_default(leader);
	return_to_default(last_leader);
	last_leader = -1;
}



public event_DeathMsg()
{
	set_task(0.5, "check_leader");
}

public event_gamestart()
{
	set_task(0.5, "check_leader");
}

public check_leader()
{
	if(g_rounds == 0 || g_rounds == 1)
	{
		return;
	}

	leader = get_leader();
	
	if(last_leader != leader && last_leader != -1)
	{
		return_to_default(leader);
		return_to_default(last_leader);
		last_leader = -1;
	}

	if(leader != last_leader)
	{
		  leader = get_msg_arg_int( 1 );
    if( is_user_connected( leader )) {
		 set_msg_arg_int( 2, ARG_BYTE, is_user_alive( leader ) ? SCOREATTRIB_VIP : SCOREATTRIB_DEAD );
		
		last_leader = leader;
	}
}
}

public fw_CmdStart(id, handle)
{
	if(!get_pcvar_num(cvar[TRAIL]))
	{
		return FMRES_HANDLED;
	}

	if(leader != last_leader)
	{
		id = leader;
	}
	
	if(!is_user_alive(id) || trail[id] == 0)
	{
		return FMRES_IGNORED;
	}
	
	new iButton = get_uc(handle, UC_Buttons);

	if(!(iButton & IN_MOVING))
    	{
		new Float:flGameTime = get_gametime();
	
		if(bflNextCheck[id] < flGameTime)
		{
			UTIL_KillBeamFollow(id);
			
		
			bflNextCheck[id] = flGameTime + (15 / 8);
		}
	}
	
	return FMRES_IGNORED;
}

public get_leader_handler(id1, id2)
{
	if(get_user_frags(id1) > get_user_frags(id2) || get_user_frags(id1) == get_user_frags(id2) && get_user_deaths(id1) < get_user_deaths(id2))
		return -1;

	return 1;
}

public get_leader()
{
	new players[32], num;
	get_players(players, num, "aeh", "CT");

	if(num < 2)
	{
		return -1;
	}

	SortCustom1D(players, num, "get_leader_handler");

	return players[0];
}



stock UTIL_KillBeamFollow(const id)
{
	message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
	write_byte(TE_KILLBEAM);    
	write_short(id);
	message_end();
}

stock return_to_default(id)
{
	if(!(1 <= id <= 32) || !is_user_connected(id))
		return;

	set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0);
	trail[id] = 0;
	bflNextCheck[id] = -1.0;
	UTIL_KillBeamFollow(id);
	remove_task(id + TASK_AURA);
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1048\\ f0\\ fs16 \n\\ par }
*/

░█▀▀█ ▒█░▒█ ▒█▀▄▀█ ▒█▀▀▀ ▀▀█▀▀
▒█▄▄█ ▒█▀▀█ ▒█▒█▒█ ▒█▀▀▀ ░▒█░░
▒█░▒█ ▒█░▒█ ▒█░░▒█ ▒█▄▄▄ ░▒█░░


🤘🤘 ALLAME61 🤘🤘

Steam : https://steamcommunity.com/id/tr_crap/
FB : /allame61.OrJinaLL

DNS : cs81.csduragi.com
IP: 213.238.173.81

Link:
Linklerini gizle
Linki Kopyala

Cevapla