Jump to content
  • 0

How to ask to the server froma client to return a variable


Jey

Question

4 answers to this question

Recommended Posts

  • 0

You could create a public variable in your server_monitor.sqf where you store your PlayerUIDs

PV_admins =["0123456789","9876543210"];
publicVariable "PV_admins";

In your mission file you set all the IDs from you server_monitor.sqf to a new array.

 

e.g.

waitUntil {sleep 1; !isNil "PV_admins"};

admin_list = [];

for "_i" from 0 to ((count PV_admins) - 1) do {
	private ["_plyrid"];
	_plyrid = (PV_admins select _i);
	admin_list set [count admin_list,_plyrid];
};
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...