#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "drop", "a", "1=0", "2=0")
}
public drop()
{
new players[32],inum,id
get_players(players,inum)
for(new i;i<inum;i++)
{
if(get_user_team(id) == 1)
strip_user_weapons(id)
colorchat(id,"!y[!gSTRIP!y] !tTeroristler Disarmlandi.")
}
}
// RENKLI YAZI //
//-----------------------------------------------------------------//
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();
}
}
}
}
// RENKLI YAZI //
//-----------------------------------------------------------------//