Send Admin Message from Server Extension

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
User avatar
pogsdbest
Posts: 17
Joined: 08 Feb 2019, 10:09

Send Admin Message from Server Extension

Post by pogsdbest »

Hi i know this Question is asked before, but would like to know if we can send an admin message from Extension.

our old build only Accepts Admin message to popup messages on their screen
would like to send an admin message on the server side to tell a specific player(User) to update to latest version of the app.

something like

send(SFSEventType.ADMIN_MESSAGE, sfsobjectMessage ,User);
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Send Admin Message from Server Extension

Post by Lapo »

Hi,
you can use the server API's sendAdminMessage() method.

Example:

Code: Select all

getApi().sendAdminMessage(sender, message, params, recipients)
To learn more see the docs here

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
pogsdbest
Posts: 17
Joined: 08 Feb 2019, 10:09

Re: Send Admin Message from Server Extension

Post by pogsdbest »

Lapo wrote:Hi,
you can use the server API's sendAdminMessage() method.

Example:

Code: Select all

getApi().sendAdminMessage(sender, message, params, recipients)
To learn more see the docs here

Hope it helps
thanks lapo
Post Reply