TKC-Community

Hacking and Art => Armed Assault 3 => Armed Assault 2 => Topic started by: [TKC]Sexo on July 05, 2012, 12:30:37 am

Title: How to send message to all players
Post by: [TKC]Sexo on July 05, 2012, 12:30:37 am
Yo

I wanna send a message to all players in a server.
Hint seems to be local. Also - the global messages are shown only on my own computer. What should i do to make em shown on all computers?

Title: Re: How to send message to all players
Post by: c5 on July 05, 2012, 12:49:06 am
Option 1:

1. Find and download arma mod-apps from this site
2. Open them & research
3. Test your finds
4. Voila  :icon_thumbsup

Option 2:

1. Look around in the forums
2. Voila  :icon_thumbsup

Easy, isn't it? It's all around here somewhere  :icon_rolleyes2

Look around, how other scripts in different mod-apps are 'done public' or 'run magically'
Title: Re: How to send message to all players
Post by: M. O. on July 05, 2012, 02:06:14 am
The code in the SCP includes this functionality.
Title: Re: How to send message to all players
Post by: darkrounge on July 05, 2012, 02:10:08 am
Check the thread "Darky.pbo" that has it :)
Title: Re: How to send message to all players
Post by: Buster on July 05, 2012, 03:14:42 am
SMS  :icon_thumbsup
Title: Re: How to send message to all players
Post by: stealthstick on July 05, 2012, 04:31:26 am
The simple way to do it is with setvehicleinit.

Code: [Select]
player setVehicleInit
"

player globalchat "Yes, we all said this at the same time.";

";
processInitCommands;
clearVehicleInit player;
Title: Re: How to send message to all players
Post by: MrMedic on July 05, 2012, 12:55:58 pm
or create and event handler on the server.
Title: Re: How to send message to all players
Post by: s0ybean on July 05, 2012, 06:15:50 pm
I prefer titleText over Hints.

Code: [Select]
Message = "TKC for President";

datcode = format ['titleText ["%1", "PLAIN"];', Message];

player setVehicleInit datcode;
processInitCommands;
clearVehicleInit player;

datcode = nil;