mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
fixed hud message syncing
This commit is contained in:
parent
84b09301e6
commit
62489d05cc
@ -3959,16 +3959,14 @@ static cell AMX_NATIVE_CALL ShowSyncHudMsg(AMX *amx, cell *params)
|
||||
if (pPlayer->ingame)
|
||||
{
|
||||
g_langMngr.SetDefLang(i);
|
||||
message = UTIL_SplitHudMessage(format_amxstring(amx, params, 3, len));
|
||||
g_hudset.channel = pPlayer->NextHUDChannel();
|
||||
pPlayer->channels[g_hudset.channel] = gpGlobals->time;
|
||||
CheckAndClearPlayerHUD(pPlayer, g_hudset.channel, sync_obj);
|
||||
message = UTIL_SplitHudMessage(format_amxstring(amx, params, 3, len));
|
||||
UTIL_HudMessage(pPlayer->pEdict, g_hudset, message);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
message = UTIL_SplitHudMessage(format_amxstring(amx, params, 3, len));
|
||||
|
||||
if (index < 1 || index > gpGlobals->maxClients)
|
||||
{
|
||||
LogError(amx, AMX_ERR_NATIVE, "Invalid player id %d", index);
|
||||
@ -3982,6 +3980,7 @@ static cell AMX_NATIVE_CALL ShowSyncHudMsg(AMX *amx, cell *params)
|
||||
g_hudset.channel = pPlayer->NextHUDChannel();
|
||||
pPlayer->channels[g_hudset.channel] = gpGlobals->time;
|
||||
CheckAndClearPlayerHUD(pPlayer, g_hudset.channel, sync_obj);
|
||||
message = UTIL_SplitHudMessage(format_amxstring(amx, params, 3, len));
|
||||
UTIL_HudMessage(pPlayer->pEdict, g_hudset, message);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user