DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ SendServerLogToClient()

void PluginBase::SendServerLogToClient ( string msg)
inlineprotected

См. определение в файле PluginDeveloper.c строка 129

130 {
131 if ( GetGame() )
132 {
133 array<Man> players = new array<Man>;
134 GetGame().GetPlayers( players );
135
136 for ( int i = 0; i < players.Count(); ++i )
137 {
138 Param1<string> param = new Param1<string>( msg );
139 Man player = players.Get(i);
140
141 if ( player && player.HasNetworkID() )
142 {
143 player.RPCSingleParam(ERPCs.DEV_RPC_SEND_SERVER_LOG, param, true, player.GetIdentity());
144 }
145 }
146 }
147 }
ERPCs
Определения ERPCs.c:2
proto native void GetPlayers(out array< Man > players)
proto native CGame GetGame()

Перекрестные ссылки GetGame() и CGame::GetPlayers().