MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / OnUserMessageSent

Method OnUserMessageSent

core/MenuStyle_Radio.cpp:204–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void CRadioStyle::OnUserMessageSent(int msg_id)
205{
206 for (unsigned int i=0; i<g_last_client_count; i++)
207 {
208 int client = g_last_clients[i];
209#if defined MENU_DEBUG
210 logger->LogMessage("[SM_MENU] CRadioStyle got ShowMenu (client %d) (bInMenu %d)",
211 client,
212 m_players[client].bInExternMenu);
213#endif
214 if (m_players[client].bInMenu)
215 {
216 _CancelClientMenu(client, MenuCancel_Interrupted, true);
217 }
218 m_players[client].bInExternMenu = true;
219 m_players[client].menuHoldTime = g_last_holdtime;
220 }
221 g_last_client_count = 0;
222}
223
224void CRadioStyle::SendDisplay(int client, IMenuPanel *display)
225{

Callers 1

OnMessageEnd_PostMethod · 0.45

Calls 1

LogMessageMethod · 0.45

Tested by

no test coverage detected