Yukardaki renksiz ve kişiye özeldir.

Yeni Attığım renkli ve herkeste gözüküyor.

Kod:
#include <amxmodx>#include <amxmisc>
#include <fun>


#define PLUGIN "Random Health"
#define VERSION "1.0"
#define AUTHOR "akcaliberkk"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_logevent("eRS",2,"1=Round_Start")
}
public eRS(id) {
	new players[32],inum,name[32];
	get_players(players,inum)
	get_user_name(id,name,31)
	
	new id = players[random(inum)];
	set_user_health(id, get_user_health(id) + 25 )
	colorchat(0,"!t[!gAMXX!t] !yRastgele +25 HP !g%s !yIsimli Oyuncuya Geldi..",name)
}
stock colorchat(const id, const input[], any:...) {
	new count = 1, players[32]
	static msg[191]
	vformat(msg, 190, input, 3)
	
	replace_all(msg, 190, "!g", "^4") // YESIL YAZI
	replace_all(msg, 190, "!y", "^1") // SARI YAZI (DEFAULT)
	replace_all(msg, 190, "!t", "^3") // TAKIM RENGI ( T Kırmızı - CT Mavi )
	
	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();
			}
		}
	}
}