Jump to content

Change GUIAnnouncementHook

Not a Bug 2.2.6

Hi,

could you use the public-announcement hook, instead of iterating through all players?

(22:24:35) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player1]: [Convoy] In  5 s. the cargo will be transported along the road!
(22:24:35) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player2]: [Convoy] In  5 s. the cargo will be transported along the road!
(22:24:35) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player3]: [Convoy] In  5 s. the cargo will be transported along the road!
(22:24:35) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player4]: [Convoy] In  5 s. the cargo will be transported along the road!
(22:24:35) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player5]: [Convoy] In  5 s. the cargo will be transported along the road!
(22:24:35) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player6]: [Convoy] In  5 s. the cargo will be transported along the road!
(22:24:35) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player7]: [Convoy] In  5 s. the cargo will be transported along the road!
(22:24:35) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player8]: [Convoy] In  5 s. the cargo will be transported along the road!

(22:24:40) | [Oxide] 22:25 [Info] [GUIAnnouncements] Patrol Helicopter Inbound!

(22:24:40) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player1]: [Convoy] The convoy started moving
(22:24:40) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player2]: [Convoy] The convoy started moving
(22:24:40) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player3]: [Convoy] The convoy started moving
(22:24:40) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player4]: [Convoy] The convoy started moving
(22:24:40) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player5]: [Convoy] The convoy started moving
(22:24:40) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player6]: [Convoy] The convoy started moving
(22:24:40) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player7]: [Convoy] The convoy started moving
(22:24:40) | [Oxide] 22:25 [Info] [GUIAnnouncements] [player8]: [Convoy] The convoy started moving

It is not an error just a source for short lags, if you have high population.

You can see the public announcement for patrol helicopter inbetween.

Maybe thats better than calling the hook for each player online 🙂

  • Like 1

Share this comment


Link to comment

Hi. This is done so that players on the server, who use different languages, receive messages from the leng convoy in different languages. If I do as you want, then the players will receive messages only in English

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.2k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.