Код за потвърждение: Избери целия код
public sayTimeLeft(id)
{
if (get_cvar_float("mp_timelimit"))
{
new a = get_timeleft()
if (get_cvar_num("amx_time_voice"))
{
new svoice[128]
setTimeVoice(svoice, 127, 0, a)
client_cmd(id, "%s", svoice)
}
chat_color(0, "!g[EMOTO2.COM] !yTime left: !t%d!y:!t%02d", (a / 60), (a % 60))
}
else
chat_color(0, "!g[EMOTO2.COM] !yTime left: !tNo time limit!")
return PLUGIN_CONTINUE
}