OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Rifly on 11 Jul 2009, 22:48:46
-
Is possible to take the message from a chat in an Array of words?
-
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?
-
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?
-
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.
-
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.
-
http://community.bistudio.com/wiki/ArmA:_Server_Side_Scripting
onUnsignedData="kick (_this select 0)";
-
That command is for ArmA, not OFP.