Kod: Tümünü seç
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Vox Round Say"
#define VERSION "1.2"
#define AUTHOR "God@Dorin-NiCoMeDiA"
new rounds_elapsed;
new chat_message;
new play_sound;
new say_text;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "new_round", "a", "1=0", "2=0");
register_event("TextMsg", "restart_round", "a", "2=#Game_will_restart_in");
play_sound = register_cvar("amx_playsound","1");
chat_message = register_cvar("mesaj_turu","1");
say_text = get_user_msgid("SayText");
}
public new_round()
{
rounds_elapsed += 1;
new map[32]
get_mapname(map, 31)
new p_players;
new p_playernum;
p_players = get_maxplayers();
p_playernum = get_playersnum(1);
if(get_pcvar_num(chat_message) == 1)
{
client_printc(0,"!t[CSDuragi] !yRaund: !g%d !yHarita: !g%s !yOyuncular: !t%d!y/!t%d", rounds_elapsed, map, p_playernum, p_players);
set_dhudmessage(0, 255, 0, -1.0, 0.35, 2, 2.0, 2.0, 0.1, 3.0)
show_dhudmessage(0, "× ~ CSDURAGI GAMING ~ ×");
set_dhudmessage(255, 0, 0, -1.0, 0.35, 2, 2.0, 2.0, 0.1, 3.0)
show_dhudmessage(0, "^nRaund: [ %d ] Harita: [ %s ]",rounds_elapsed, map);
set_dhudmessage(150, 150, 150, -1.0, 0.35, 2, 2.0, 2.0, 0.1, 3.0)
show_dhudmessage(0, "^n^nOyuncular: [ %d/%d ]", p_playernum, p_players);
}
if(get_pcvar_num(play_sound) == 1)
{
new rndctstr[21]
num_to_word(rounds_elapsed, rndctstr, 20);
client_cmd(0, "spk ^"vox/round %s^"",rndctstr)
}
return PLUGIN_CONTINUE;
}
public restart_round()
{
rounds_elapsed = 0;
}