Author Topic: How to send message to all players  (Read 826 times)

0 Members and 1 Guest are viewing this topic.

[TKC]Sexo

  • Online Villain
  • ***
  • Posts: 114
    • View Profile
How to send message to all players
« 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?


c5

  • Online Villain
  • ***
  • Posts: 174
    • View Profile
Re: How to send message to all players
« Reply #1 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'
How do I makes hax?!

M. O.

  • Administrator
  • MasstKer
  • *
  • Posts: 9184
    • View Profile
    • http://www.tkc-community.net
Re: How to send message to all players
« Reply #2 on: July 05, 2012, 02:06:14 am »
The code in the SCP includes this functionality.
Heckling is an art, and game hacking a science.

darkrounge

  • Online Villain
  • ***
  • Posts: 166
    • View Profile
Re: How to send message to all players
« Reply #3 on: July 05, 2012, 02:10:08 am »
Check the thread "Darky.pbo" that has it :)

Buster

  • Klass Klown
  • ***
  • Posts: 295
  • Kool Kat
    • View Profile
Re: How to send message to all players
« Reply #4 on: July 05, 2012, 03:14:42 am »
SMS  :icon_thumbsup

stealthstick

  • Klass Klown
  • ***
  • Posts: 360
  • Computer Scientist
    • View Profile
Re: How to send message to all players
« Reply #5 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;
It's been a good few years, becoming what I always wanted to be.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: How to send message to all players
« Reply #6 on: July 05, 2012, 12:55:58 pm »
or create and event handler on the server.
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

s0ybean

  • Intentional Cheater
  • **
  • Posts: 33
    • View Profile
Re: How to send message to all players
« Reply #7 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;