[ZP] Выводим информацию о "Zombie Class" через окно "MOTD"
Выводим информацию о "Zombie Class" через окно "MOTD"

Приветствую пользователей моего портала «tb-team.com», сегодня расскажу вам как можно вывести информацию о зомби классе через наше замечательное MOTD окно. Тем самым вы сможете поместить туда любую информацию и красиво все оформить!

Я возьму готовые MOTD окно с моей старой сборки, так-же вы можете его использовать для своих целей!
Хочу сразу отметить, что информация в окне выводится на HTML, так-же можете подключить CSS стили!

Пример окна который на картинке выше!

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Document</title>
<style type="text/css">
pre  {
  font-family:Verdana,Tahoma;
  color:#FFB000;
	 }
body {
  font-family:Verdana;
  font-size:12px;
  color:#FFB000;
  background:#1e2d40;
  margin-left:15px;
  margin-top:0px;
  }
a {
	 text-decoration:    underline;
}
a:link  {
    color:  #FFB000;
    }
a:visited   {
    color:  #FFB000;
    }
a:active    {
    color:  #FFB000;
    }
a:hover {
    color:  #AAAAAA;
    text-decoration:    underline;
    }
</style>
</head>
<p style="text-align: center;"><span style="color: #ffffff;"> <br /> <img style="display: block; margin-left: auto; margin-right: auto;" src="http://img4.wikia.nocookie.net/__cb20130929000525/cso/images/3/3a/Pczombi.png" /><br /><strong>[Психо зомби]</strong> </span></p>
<p style="text-align: center;"><span style="color: #ffffff;">Способность: Дымовая завеса, нажимать на <span style="color: #ff0000;"><strong>[G]</strong></span></span></p>
<p style="text-align: center;"><span style="color: #ffffff;">Союзники внутри дымовой замесы будут получать меньше урона от противника.</span></p>
<p>&nbsp;</p>

Уроки по HTML проводить не буду, разберетесь сами или можете воспользоваться онлайн редактором HTML
Как прописать в мод или как выводить в игре?

1. Для начало вы должны файл с MOTD окном поместить в корень вашего сервера!

2. Открываем исходник нашего мода и ищем строчку // Store selection for the next infection и ниже вставляем код вывода нашего окна!

 if(g_zombieclassnext[id] == 0) 
 { 
 show_motd(id, "motd_speed.txt") 
 }

Отчет от первого зомби начинается с 0, где motd_speed.txt - это названия вашего файла с окном, так-же не забывайте сохранять ваши файлы в кодировке UTF-8 без BOOM
Пример

Выводим информацию о "Zombie Class" через окно "MOTD"

Автор статьи:
tb_bader
You do not have access to download files from our server

Hello, our administration publishes only cannon content, put like under the post below and write the best comment, we are preparing material just for you, Darling Гость.

Comments 10
Информация
Посетители, находящиеся в группе Guests, не могут оставлять комментарии к данной публикации.
Our Discord partners
Foundation for your build
ReHLDS 3.4.0.654

ReHLDS (Reverse-engineered) - this is a new step forward that gives a second wind to our servers. ReHLDS works 2 times faster than HLDS.

AmxModx 1.8.3

AMXModX is a Metamod add-on that allows you to create new modifications for Half-Life in the Pawn language

Reunion 0.1.92

Reunion is a continuation of Dproto for ReHLDS. This is a metamod plugin that allows you to log into the 47/48 Non-Steam server.

Revoice 0.1.0.32

Revoice is a Metamod plugin that allows voice chat between non-steam and steam clients.

Metamod-r 1.3.0.127

The new Metamod-r contains a huge number of performance optimizations and much cleaner code. The kernel was written using a JIT compiler.

Ultimate Unprecacher 1.1

Ultimate Unprecacher is a plugin for MetaMod, it works on the principle of disabling unnecessary resources on your server, thereby you can free up space for resources for your plugins, using this module you can get rid of error 512!

ReAuthCheck 0.1.6

ReAuthCheck - this is a Metamod plugin that checks your players for validity, with this module for REHLDS you can protect your server from bots that constantly spam ads or simply clog up a slot on the server!

NetBufExtender (NBEX) 1.0

NetBufExtender or NBEX - This is a metamod plugin that expands the пїЅInternet bufferпїЅ: server and client buffers (not 100% guaranteed). Expands up to 64 kb. This means that players are less likely to be kicked with the error "Reliable channel overflowed"".

UserInfoNetOptimizer (UINO) 1.0

UINO пїЅ metamod plugin that allows you to remove unnecessary fields from userinfo(setinfo) when the engine passes it to other players on the server. This measure reduces the amount of data transferred and slightly reduces the chance of being kicked with "Reliable channel overflowed".

Information

Welcome to TB-TEAM.COM!

Welcome To Our New Website For CS1.6 Resources!.
Register
Create your own account!

Register Now!
Login
Already registered? Come on, log in quickly!

Login to the site