Round Bılgılendırıcı
Gönderilme zamanı: Pzt Ağu 14, 2017 7:08 pm
Arkadaslar Bana Saydan Round Oyuncu ve Map Bılgılendırıcı Eklentısı Lazım Yardımcı Olursan Sevınırım
Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */
#include < amxmodx >
#include < cstrike >
#include < fun >
#include < fakemeta >
#include < fakemeta_util >
#include < hamsandwich >
#include < engine >
#include < reapi >
#define PLUGIN "30TUR"
#define VERSION "1.0"
#define AUTHOR "Kerim Akovali"
new tur
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "elbasi", "a", "1=0", "2=0")
register_event("TextMsg", "restartattim", "a", "2=#Game_will_restart_in", "2=#Game_Commencing")
}
public restartattim()
{
tur = 0
}
public elbasi()
{
tur++
new map[64]
get_mapname(map,63)
new players[32] , kisi;
get_players(players, kisi);
renkli_yazi(0,"!tRaund :%i",tur)
renkli_yazi(0,"!tKisi :%i",kisi)
renkli_yazi(0,"!tMap :%s",map)
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, sizeof(msg) - 1, input, 3);
replace_all(msg, sizeof(msg) - 1, "!n", "^x01");
replace_all(msg, sizeof(msg) - 1, "!g", "^x04");
replace_all(msg, sizeof(msg) - 1, "!t", "^x03");
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();
}
}
}
}