Home   Help Search Login Register  

Author Topic: Message from a chat as array of words  (Read 2331 times)

0 Members and 1 Guest are viewing this topic.

Offline Rifly

  • Members
  • *
Message from a chat as array of words
« on: 11 Jul 2009, 22:48:46 »
Is possible to take the message from a chat in an Array of words?
« Last Edit: 12 Jul 2009, 08:42:44 by Rifly »

Walter_E_Kurtz

  • Guest
Re: Message from a chat as array of words
« Reply #1 on: 15 Jul 2009, 00:48:47 »
Please expand.

 - Explain the question
 - If possible, explain the question again using different words
 - Give an example


Do you mean for a player to input information using chat - data that will be used by the mission?

OR, do you mean to create a chat message from an array - the mission will select a word from an array to include in the message?

Offline Rifly

  • Members
  • *
Re: Message from a chat as array of words
« Reply #2 on: 17 Jul 2009, 22:13:39 »
Thank for desire to help with this question.
For example, when in a chat MP-game OFP appear a message:
"Nick uses modified data file - g36a"
How to bring given "Nick" or player ID with given nick in the script and use it in the mission?
Or there are other ways to define the given player automatically?

Walter_E_Kurtz

  • Guest
Re: Message from a chat as array of words
« Reply #3 on: 20 Jul 2009, 20:01:16 »
I am not very familiar with the Multiplayer side of OFP, so do not take this as the last word.

I may be wrong, but you appear to be trying to make a system to catch potential cheats. From my limited experience I would say your idea would be almost impossible for two reasons:

1. The messages appear when the mission is initializing; that is after the lobby but before the briefing. I'm not sure detection scripts could be run at this time.

2. A problem with language, as the message is based on the stringtable.csv entry STR_MP_VALIDERROR, and so may appear in another language.

Sorry I could not be of more help.

Offline Rifly

  • Members
  • *
Re: Message from a chat as array of words
« Reply #4 on: 21 Jul 2009, 19:34:07 »
At any moment of mission admin of a server can enter a command:
#debug checkfile
After that the check addons also execute and will appear messages in a chat.
What about language, I think it's not a problem because in this case uses server's stringtable.csv.

Offline tcp

  • Members
  • *
    • Violator Gaming
Re: Message from a chat as array of words
« Reply #5 on: 25 Oct 2009, 18:36:41 »

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: Message from a chat as array of words
« Reply #6 on: 19 Nov 2009, 17:06:42 »
That command is for ArmA, not OFP.
urp!