Заявки за цветен Timeleft!
- OciXCrom
- OciXCrom™ Official Profile
- Posts: 585
- Joined: 21 Mar 2013, 14:21
- Skype: doctor.crom1234
- CS Nick: OciXCrom
- Favorite version: CS: 1.6
- Steam Community ID: OciXCrom
- Location: jb.iplay.bg:27015
- Contact:
Re: Заявки за цветен Timeleft!
ПРОБЛЕМЪТ е, че той иска да има червено И синьо в съобщението, което е НЕВЪЗМОЖНО, а ти си писал, че РАБОТИ. Щом не си направил както го е поискал, няма как да пишеш, че работи. Поне пиши, че си сменил цветовете, за да не стават обърквания.
- CR7 Best - MuHaBaM...
- CR7 is The Best in World
- Posts: 224
- Joined: 03 Oct 2015, 16:18
- Skype: N/A
- CS Nick: MuHaBaM e6a u 3aMuHaBaM
- Favorite version: CS: Global Offensive
- Steam Community ID: xxcristchon
- Location: с. Свобода
Re: Заявки за цветен Timeleft!
Така ли? Извинете ме, аз сметнах, че сте видели съобщението и сте се объркали оттам... Извинете ме пак. Сега ще редактирам съобщението.OciXCrom wrote:ПРОБЛЕМЪТ е, че той иска да има червено И синьо в съобщението, което е НЕВЪЗМОЖНО, а ти си писал, че РАБОТИ. Щом не си направил както го е поискал, няма как да пишеш, че работи. Поне пиши, че си сменил цветовете, за да не стават обърквания.
- psyth1g
- Deactivated account
- Posts: 69
- Joined: 30 May 2016, 18:20
- Skype: ЛС.
- CS Nick: D4Yz
- Favorite version: CS: 1.6
- Steam Community ID: p1tbullwtf
- Location: Под масата
- Contact:
Re: Заявки за цветен Timeleft!
CT - [CS-SILISTRA] Time Left 26:43
T - [CS-SILISTRA] Time Left 26:43
T - [CS-SILISTRA] Time Left 26:43
- Unity Man
- VIP
- Posts: 1118
- Joined: 12 Oct 2015, 20:21
- CS Nick: BiTurbu
- Favorite version: CS: Global Offensive
Re: Заявки за цветен Timeleft!
Заповядай!TorbaN wrote:CT - [CS-SILISTRA] Time Left 26:43
T - [CS-SILISTRA] Time Left 26:43
- Attachments
-
- TiMeLeFt.rar
- (2.07 KiB) Downloaded 198 times
- Desmeon
- Потребител
- Posts: 258
- Joined: 05 May 2013, 18:48
- Skype: ЛС!
- Location: Дом на масата.
Re: Заявки за цветен Timeleft!
Първо прочетете това:
Списък с невъзможни комбинации от цветове:
ПС: Списъкът е взет от iPlay.BG.
Списък с невъзможни комбинации от цветове:
След това пускайте заявки.според отбора + червен = невъзможно
според отбора + син = невъзможно
според отбора + бял = невъзможно
червен + син = невъзможно
червен + бял = невъзможно
червен + според отбора = невъзможно
син + червен = невъзможно
син + бял = невъзможно
син + според отбора = невъзможно
бял + червен = невъзможно
бял + син = невъзможно
бял + според отбора = невъзможно
ПС: Списъкът е взет от iPlay.BG.
- Gatko245
- Потребител
- Posts: 31
- Joined: 23 Jun 2015, 16:20
Re: Заявки за цветен Timeleft!
Т - [Musaka] Timeleft 28:43
CT -[Musaka] Timeleft 28:43
CT -[Musaka] Timeleft 28:43
Last edited by Gatko245 on 05 May 2017, 18:28, edited 2 times in total.
- CR7 Best - MuHaBaM...
- CR7 is The Best in World
- Posts: 224
- Joined: 03 Oct 2015, 16:18
- Skype: N/A
- CS Nick: MuHaBaM e6a u 3aMuHaBaM
- Favorite version: CS: Global Offensive
- Steam Community ID: xxcristchon
- Location: с. Свобода
Re: Заявки за цветен Timeleft!
Gatko245 wrote:Т - [Musaka] Timeleft 28:43
CT -[Musaka] Timeleft 28:43
- Belchew
- V.I.P
- Posts: 26
- Joined: 04 Sep 2015, 11:18
- Skype: milen260
- CS Nick: НЕ КАЗВАМ ....
- Favorite version: CS: 1.6
- Location: Ямбол
Re: Заявки за цветен Timeleft!
CT - [NetMasters.Eu] Time Left 26:43 - според отбора
T - [NetMasters.Eu] Time Left 26:43 - според отбора
T - [NetMasters.Eu] Time Left 26:43 - според отбора
- CR7 Best - MuHaBaM...
- CR7 is The Best in World
- Posts: 224
- Joined: 03 Oct 2015, 16:18
- Skype: N/A
- CS Nick: MuHaBaM e6a u 3aMuHaBaM
- Favorite version: CS: Global Offensive
- Steam Community ID: xxcristchon
- Location: с. Свобода
Re: Заявки за цветен Timeleft!
Belchew wrote:CT - [NetMasters.Eu] Time Left 26:43 - според отбора
T - [NetMasters.Eu] Time Left 26:43 - според отбора
- ANT.
- 4funBGofficial. ®
- Posts: 123
- Joined: 08 Aug 2012, 12:13
- Skype: ЛС
- Favorite version: CS: 1.6
- Steam Community ID: antbg
- Location: София
Re: Заявки за цветен Timeleft!
CT - [Go-Die] Time Left 26:43 - според отбора
T - [Go-Die] Time Left 26:43 - според отбора
T - [Go-Die] Time Left 26:43 - според отбора
- CR7 Best - MuHaBaM...
- CR7 is The Best in World
- Posts: 224
- Joined: 03 Oct 2015, 16:18
- Skype: N/A
- CS Nick: MuHaBaM e6a u 3aMuHaBaM
- Favorite version: CS: Global Offensive
- Steam Community ID: xxcristchon
- Location: с. Свобода
Re: Заявки за цветен Timeleft!
ANT. wrote:CT - [Go-Die] Time Left 26:43 - според отбора
T - [Go-Die] Time Left 26:43 - според отбора
Code: Select all
#include <amxmodx>
new g_TimeSet[32][2]
new g_LastTime
new g_CountDown
new g_Switch
public plugin_init()
{
register_plugin("TimeLeft", AMXX_VERSION_STR, "AMXX Dev Team")
register_dictionary("timeleft.txt")
register_cvar("amx_time_voice", "1")
register_srvcmd("amx_time_display", "setDisplaying")
register_cvar("amx_timeleft", "00:00", FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
register_clcmd("say timeleft", "sayTimeLeft", 0, "- displays timeleft")
register_clcmd("say thetime", "sayTheTime", 0, "- displays current time")
set_task(0.8, "timeRemain", 8648458, "", 0, "b")
}
public sayTheTime(id)
{
if (get_cvar_num("amx_time_voice"))
{
new mhours[6], mmins[6], whours[32], wmins[32], wpm[6]
get_time("%H", mhours, 5)
get_time("%M", mmins, 5)
new mins = str_to_num(mmins)
new hrs = str_to_num(mhours)
if (mins)
num_to_word(mins, wmins, 31)
else
wmins[0] = 0
if (hrs < 12)
wpm = "am "
else
{
if (hrs > 12) hrs -= 12
wpm = "pm "
}
if (hrs)
num_to_word(hrs, whours, 31)
else
whours = "twelve "
client_cmd(id, "spk ^"fvox/time_is_now %s_period %s%s^"", whours, wmins, wpm)
}
new ctime[64]
get_time("%m/%d/%Y - %H:%M:%S", ctime, 63)
ColorMessage(0, "^4[Go-Die] ^3%L: ^3%s", LANG_PLAYER, "THE_TIME", ctime)
return PLUGIN_CONTINUE
}
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)
}
ColorMessage(0, "^4[Go-Die] ^3%L: ^1%d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60))
}
else
ColorMessage(0, "^4[Go-Die] ^3%L", LANG_PLAYER, "NO_T_LIMIT")
return PLUGIN_CONTINUE
}
setTimeText(text[], len, tmlf, id)
{
new secs = tmlf % 60
new mins = tmlf / 60
if (secs == 0)
format(text, len, "%d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE")
else if (mins == 0)
format(text, len, "%d %L", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
else
format(text, len, "%d %L %d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
}
setTimeVoice(text[], len, flags, tmlf)
{
new temp[7][32]
new secs = tmlf % 60
new mins = tmlf / 60
for (new a = 0;a < 7;++a)
temp[a][0] = 0
if (secs > 0)
{
num_to_word(secs, temp[4], 31)
if (!(flags & 8))
temp[5] = "seconds "
}
if (mins > 59)
{
new hours = mins / 60
num_to_word(hours, temp[0], 31)
if (!(flags & 8))
temp[1] = "hours "
mins = mins % 60
}
if (mins > 0)
{
num_to_word(mins, temp[2], 31)
if (!(flags & 8))
temp[3] = "minutes "
}
if (!(flags & 4))
temp[6] = "remaining "
return format(text, len, "spk ^"vox/%s%s%s%s%s%s%s^"", temp[0], temp[1], temp[2], temp[3], temp[4], temp[5], temp[6])
}
findDispFormat(time)
{
for (new i = 0; g_TimeSet[i][0]; ++i)
{
if (g_TimeSet[i][1] & 16)
{
if (g_TimeSet[i][0] > time)
{
if (!g_Switch)
{
g_CountDown = g_Switch = time
remove_task(8648458)
set_task(1.0, "timeRemain", 34543, "", 0, "b")
}
return i
}
}
else if (g_TimeSet[i][0] == time)
{
return i
}
}
return -1
}
public setDisplaying()
{
new arg[32], flags[32], num[32]
new argc = read_argc() - 1
new i = 0
while (i < argc && i < 32)
{
read_argv(i + 1, arg, 31)
parse(arg, flags, 31, num, 31)
g_TimeSet[i][0] = str_to_num(num)
g_TimeSet[i][1] = read_flags(flags)
i++
}
g_TimeSet[i][0] = 0
return PLUGIN_HANDLED
}
public timeRemain(param[])
{
new gmtm = get_timeleft()
new tmlf = g_Switch ? --g_CountDown : gmtm
new stimel[12]
format(stimel, 11, "%02d:%02d", gmtm / 60, gmtm % 60)
set_cvar_string("amx_timeleft", stimel)
if (g_Switch && gmtm > g_Switch)
{
remove_task(34543)
g_Switch = 0
set_task(0.8, "timeRemain", 8648458, "", 0, "b")
return
}
if (tmlf > 0 && g_LastTime != tmlf)
{
g_LastTime = tmlf
new tm_set = findDispFormat(tmlf)
if (tm_set != -1)
{
new flags = g_TimeSet[tm_set][1]
new arg[128]
if (flags & 1)
{
new players[32], pnum
get_players(players, pnum, "c")
for (new i = 0; i < pnum; i++)
{
setTimeText(arg, 127, tmlf, players[i])
if (flags & 16)
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 1.1, 0.1, 0.5, -1)
else
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, -1)
show_hudmessage(players[i], "%s", arg)
}
}
if (flags & 2)
{
setTimeVoice(arg, 127, flags, tmlf)
client_cmd(0, "%s", arg)
}
}
}
}
/*START - ColorChat */
stock ColorMessage(const id, const input[], any:...){
new count = 1, players[32];
static msg[ 191 ];
vformat(msg, 190, input, 3);
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();}}}
}
- ANT.
- 4funBGofficial. ®
- Posts: 123
- Joined: 08 Aug 2012, 12:13
- Skype: ЛС
- Favorite version: CS: 1.6
- Steam Community ID: antbg
- Location: София
Re: Заявки за цветен Timeleft!
Може ли цял плъгин
- CR7 Best - MuHaBaM...
- CR7 is The Best in World
- Posts: 224
- Joined: 03 Oct 2015, 16:18
- Skype: N/A
- CS Nick: MuHaBaM e6a u 3aMuHaBaM
- Favorite version: CS: Global Offensive
- Steam Community ID: xxcristchon
- Location: с. Свобода
Re: Заявки за цветен Timeleft!
ANT. wrote:Може ли цял плъгин
- ANT.
- 4funBGofficial. ®
- Posts: 123
- Joined: 08 Aug 2012, 12:13
- Skype: ЛС
- Favorite version: CS: 1.6
- Steam Community ID: antbg
- Location: София
Re: Заявки за цветен Timeleft!
CT - [Deluxe-Gaming] Time Left 26:43 - според отбора
T - [Deluxe-Gaming] Time Left 26:43 - според отбора
T - [Deluxe-Gaming] Time Left 26:43 - според отбора
- CR7 Best - MuHaBaM...
- CR7 is The Best in World
- Posts: 224
- Joined: 03 Oct 2015, 16:18
- Skype: N/A
- CS Nick: MuHaBaM e6a u 3aMuHaBaM
- Favorite version: CS: Global Offensive
- Steam Community ID: xxcristchon
- Location: с. Свобода
Re: Заявки за цветен Timeleft!
ANT. wrote:CT - [Deluxe-Gaming] Time Left 26:43 - според отбора
T - [Deluxe-Gaming] Time Left 26:43 - според отбора
Code: Select all
#include <amxmodx>
new g_TimeSet[32][2]
new g_LastTime
new g_CountDown
new g_Switch
public plugin_init()
{
register_plugin("TimeLeft", AMXX_VERSION_STR, "AMXX Dev Team")
register_dictionary("timeleft.txt")
register_cvar("amx_time_voice", "1")
register_srvcmd("amx_time_display", "setDisplaying")
register_cvar("amx_timeleft", "00:00", FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
register_clcmd("say timeleft", "sayTimeLeft", 0, "- displays timeleft")
register_clcmd("say thetime", "sayTheTime", 0, "- displays current time")
set_task(0.8, "timeRemain", 8648458, "", 0, "b")
}
public sayTheTime(id)
{
if (get_cvar_num("amx_time_voice"))
{
new mhours[6], mmins[6], whours[32], wmins[32], wpm[6]
get_time("%H", mhours, 5)
get_time("%M", mmins, 5)
new mins = str_to_num(mmins)
new hrs = str_to_num(mhours)
if (mins)
num_to_word(mins, wmins, 31)
else
wmins[0] = 0
if (hrs < 12)
wpm = "am "
else
{
if (hrs > 12) hrs -= 12
wpm = "pm "
}
if (hrs)
num_to_word(hrs, whours, 31)
else
whours = "twelve "
client_cmd(id, "spk ^"fvox/time_is_now %s_period %s%s^"", whours, wmins, wpm)
}
new ctime[64]
get_time("%m/%d/%Y - %H:%M:%S", ctime, 63)
ColorMessage(0, "^4[Deluxe-Gaming] ^3%L: ^3%s", LANG_PLAYER, "THE_TIME", ctime)
return PLUGIN_CONTINUE
}
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)
}
ColorMessage(0, "^4[Deluxe-Gaming] ^3%L: ^1%d:%02d", LANG_PLAYER, "TIME_LEFT", (a / 60), (a % 60))
}
else
ColorMessage(0, "^4[Deluxe-Gaming] ^3%L", LANG_PLAYER, "NO_T_LIMIT")
return PLUGIN_CONTINUE
}
setTimeText(text[], len, tmlf, id)
{
new secs = tmlf % 60
new mins = tmlf / 60
if (secs == 0)
format(text, len, "%d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE")
else if (mins == 0)
format(text, len, "%d %L", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
else
format(text, len, "%d %L %d %L", mins, id, (mins > 1) ? "MINUTES" : "MINUTE", secs, id, (secs > 1) ? "SECONDS" : "SECOND")
}
setTimeVoice(text[], len, flags, tmlf)
{
new temp[7][32]
new secs = tmlf % 60
new mins = tmlf / 60
for (new a = 0;a < 7;++a)
temp[a][0] = 0
if (secs > 0)
{
num_to_word(secs, temp[4], 31)
if (!(flags & 8))
temp[5] = "seconds "
}
if (mins > 59)
{
new hours = mins / 60
num_to_word(hours, temp[0], 31)
if (!(flags & 8))
temp[1] = "hours "
mins = mins % 60
}
if (mins > 0)
{
num_to_word(mins, temp[2], 31)
if (!(flags & 8))
temp[3] = "minutes "
}
if (!(flags & 4))
temp[6] = "remaining "
return format(text, len, "spk ^"vox/%s%s%s%s%s%s%s^"", temp[0], temp[1], temp[2], temp[3], temp[4], temp[5], temp[6])
}
findDispFormat(time)
{
for (new i = 0; g_TimeSet[i][0]; ++i)
{
if (g_TimeSet[i][1] & 16)
{
if (g_TimeSet[i][0] > time)
{
if (!g_Switch)
{
g_CountDown = g_Switch = time
remove_task(8648458)
set_task(1.0, "timeRemain", 34543, "", 0, "b")
}
return i
}
}
else if (g_TimeSet[i][0] == time)
{
return i
}
}
return -1
}
public setDisplaying()
{
new arg[32], flags[32], num[32]
new argc = read_argc() - 1
new i = 0
while (i < argc && i < 32)
{
read_argv(i + 1, arg, 31)
parse(arg, flags, 31, num, 31)
g_TimeSet[i][0] = str_to_num(num)
g_TimeSet[i][1] = read_flags(flags)
i++
}
g_TimeSet[i][0] = 0
return PLUGIN_HANDLED
}
public timeRemain(param[])
{
new gmtm = get_timeleft()
new tmlf = g_Switch ? --g_CountDown : gmtm
new stimel[12]
format(stimel, 11, "%02d:%02d", gmtm / 60, gmtm % 60)
set_cvar_string("amx_timeleft", stimel)
if (g_Switch && gmtm > g_Switch)
{
remove_task(34543)
g_Switch = 0
set_task(0.8, "timeRemain", 8648458, "", 0, "b")
return
}
if (tmlf > 0 && g_LastTime != tmlf)
{
g_LastTime = tmlf
new tm_set = findDispFormat(tmlf)
if (tm_set != -1)
{
new flags = g_TimeSet[tm_set][1]
new arg[128]
if (flags & 1)
{
new players[32], pnum
get_players(players, pnum, "c")
for (new i = 0; i < pnum; i++)
{
setTimeText(arg, 127, tmlf, players[i])
if (flags & 16)
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 1.1, 0.1, 0.5, -1)
else
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 0.0, 3.0, 0.0, 0.5, -1)
show_hudmessage(players[i], "%s", arg)
}
}
if (flags & 2)
{
setTimeVoice(arg, 127, flags, tmlf)
client_cmd(0, "%s", arg)
}
}
}
}
/*START - ColorChat */
stock ColorMessage(const id, const input[], any:...){
new count = 1, players[32];
static msg[ 191 ];
vformat(msg, 190, input, 3);
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();}}}
}