Half-Life и Adrenaline Gamer форум
http://aghl.ru/forum/

Count Down AGmini arena mod !
http://aghl.ru/forum/viewtopic.php?f=12&t=2241
Страница 1 из 1

Автор:  abdobiskra [ 31 июл 2015, 00:45 ]
Заголовок сообщения:  Count Down AGmini arena mod !

Hello guys who has a way of doing sounds countdown before the start of the match arena at each round like AG mod ?

Автор:  Lev [ 31 июл 2015, 01:42 ]
Заголовок сообщения:  Re: Count Down AGmini arena mod !

Not sure what you mean. AGmini?

Автор:  abdobiskra [ 31 июл 2015, 11:41 ]
Заголовок сообщения:  Re: Count Down AGmini arena mod !

hmm... ag_66mini in arena !!
i need to add sounds countdown like AG mod ===> ( 3.2.1 )
Вложение:
Capture.PNG
Capture.PNG [ 383.81 КБ | Просмотров: 2948 ]

Автор:  Lev [ 31 июл 2015, 21:50 ]
Заголовок сообщения:  Re: Count Down AGmini arena mod !

You have to write a plugins for this. If I am not wrong, you want to replace chat-alike text in the center with HUD one. You need to catch counter text and replace with HUD one.

Автор:  unnamed [ 01 авг 2015, 00:20 ]
Заголовок сообщения:  Re: Count Down AGmini arena mod !

Код:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN   "Agmini Test"
#define AUTHOR   "LetiLetiLepestok"
#define VERSION   "0.1"

#define MSG_POS_X 2457  // exclusive position of HUD message with countdown (AG mini. arena, lts, lms etc)
#define MSG_POS_Y 4096  //

public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_message(SVC_TEMPENTITY, "hud_text_msg")
}

public hud_text_msg(id)
{
   if (get_msg_arg_int(1) == TE_TEXTMESSAGE && get_msg_arg_int(3) == MSG_POS_X && get_msg_arg_int(4) == MSG_POS_Y)
      client_cmd(0, "spk fvox/beep")
}

Автор:  abdobiskra [ 01 авг 2015, 22:13 ]
Заголовок сообщения:  Re: Count Down AGmini arena mod !

unnamed Work but !! how can I make several sounds !
i modify but sounds come Random !
Код:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN   "Agmini Test"
#define AUTHOR   "LetiLetiLepestok"
#define VERSION   "0.1"

#define MSG_POS_X 2457  // exclusive position of HUD message with countdown (AG mini. arena, lts, lms etc)
#define MSG_POS_Y 4096  //

new const szSoundsCount[][] = {
   "barney/ba_bring.wav",
   "fvox/one.wav",
   "fvox/two.wav",
   "fvox/three.wav"
}
new g_CountDown

public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_message(SVC_TEMPENTITY, "hud_text_msg")
   g_CountDown = 3
}

public plugin_precache()
{
   for(new i = 0; i < sizeof szSoundsCount; i++)
      precache_sound(szSoundsCount[i])
}

public hud_text_msg(id)
{
   --g_CountDown
   new szConvert[32]
     
   
   if (get_msg_arg_int(1) == TE_TEXTMESSAGE && get_msg_arg_int(3) == MSG_POS_X && get_msg_arg_int(4) == MSG_POS_Y)
   num_to_word(g_CountDown, szConvert, charsmax(szConvert))
   client_cmd(0, "spk ^"fvox/%s^"", szConvert)
   return
 //  client_cmd(0, "spk fvox/beep")
}

Страница 1 из 1 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/