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

pogsdbest
Posts: 15
Joined: 08 Feb 2019, 10:09

Send Admin Message from Server Extension

Postby pogsdbest » 20 Nov 2019, 06:06

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: 21139
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Send Admin Message from Server Extension

Postby Lapo » 20 Nov 2019, 08:07

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
pogsdbest
Posts: 15
Joined: 08 Feb 2019, 10:09

Re: Send Admin Message from Server Extension

Postby pogsdbest » 22 Nov 2019, 07:03

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

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 7 guests