Question?

CraniX

New Member
Is it possible to parse a text file in the mission folder or any folder in arma for that matter into an array?'

I have a data.txt file like this...
679A97D6F58C90B86A5
A5958CD967866A97F0B

I would like to get it into arma with a loadFile function into an array like this

['679A97D6F58C90B86A5','A5958CD967866A97F0B']

Each line break will be its own value in the array.

Is this possible? & is it possible to track loadFile errors on the clients side?
 
Last edited:
I would like to load a ban list out side the mission files to be loaded into an array, sorry for being so rude in my previous post I was having a pretty bad day :(
no probs :p
im you can put the ban list into the server files/PBO and call it from there, the easiest way would be to save it as a SQF already in an array
eg
banlist = [122132321,213123,123132...etc];

that way you can call the array using banlist and load it for checking such as

//not actuall code just example
if (player UID in banlist) then {
kick player
};
 
Why not just use white list or the battleye ban list?
Otherwise sheep already told the solution, just need to script this thing, which should not be the hard part.
Maybe you can even be creative and transform those players into a sheep or something else creative or you simply kick them out of the game and they would have to restart it :)
 
Back
Top