Half-Life и Adrenaline Gamer форум http://econ.aghl.ru/forum/ |
|
[TUT] Set Team Scores method http://econ.aghl.ru/forum/viewtopic.php?f=39&t=2189 |
Страница 1 из 1 |
Автор: | Kuma77 [ 17 июн 2015, 02:44 ] |
Заголовок сообщения: | [TUT] Set Team Scores method |
Hi , This tutorial will shows you how to set team scores . I mean like this : First we need to make a plugin , then we need make a teams ofcourse , Код: #include <amxmodx> fine now we need to make an Array String to hold teams name eg : "scientist" and "hgrunt" scientist , will be the red team , and hgrunt is the blue team like this Код: new const g_szHLTeams[][] = NOTE : if your Teams are not the same as my , just change "scientist" and "hgrunt" to your teams name now we need to send message to score board now we have this code Код: #include <amxmodx> first lets make an array to hold your teams will be g_iScore[3] Код: new g_iScore[3] almost we done this is the final code . Код: #include <amxmodx> i hop you understand what i am explaining here |
Автор: | abdobiskra [ 04 май 2016, 00:34 ] | ||
Заголовок сообщения: | Re: [TUT] Set Team Scores method | ||
i think here problem ?
|
Автор: | Lev [ 04 май 2016, 02:10 ] |
Заголовок сообщения: | Re: [TUT] Set Team Scores method |
Kuma77 писал(а): public Function(id) I recommend to give meaning names to the functions same as for variables.
|
Автор: | Lev [ 04 май 2016, 06:16 ] |
Заголовок сообщения: | Re: [TUT] Set Team Scores method |
Kuma77 Код: register_message(gMsg_TeamScore, "msg_teamScore")will not work because hl.dll do not sends this message. Actually this tutorial has drawbacks. I suggest you to rewrite it so: write a plugin that fully manage team scores based on players frags, i.e. - it will have a function that will increase (and possibly decrease) team frags (decision function) - send team frags on connect - send team frags on change - read team names from mp_teamlist - read mp_teamplay cvar Yes, it tends to be more a plugin than a TUT, but managing team scores require all these steps. And still decision function should be written by a coder based on gameplay needs so possibly this will be the best way. |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |