Forum Jump :

Author Message


Posts: 2
Rank:


Level: Member

Country: br
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2016-09-28 13:03        
     
I making a missions who i need to make bluefor slots reserved for my clan someone can help me with this


Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 21
In-game name: Wak

 
#2 Posted at 2016-09-28 16:53        
     
The script is pretty simple. Just include the word "Reserved" in the role description of the reserved slots, and this script will kick people not in the whitelist. Run the script on init.

if (isServer) exitWith {};
_allowedPlayers = ["78443423", "43243324"]; // Put profile IDs here

if (((toLower roleDescription player) find "reserved") == -1) exitWith {}; 

if !(getPlayerUID player in _allowedPlayers) then {
    endMission "LOSER";
};

This post was edited by 654wak654 (2016-09-29 13:28, 748 days ago)

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage

Advertisement


Author Message


Posts: 2
Rank:


Level: Member

Country: br
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2016-09-28 22:41        
     
i am Tested the Script in singleplayer and multiplayer dedicated and the script dont working can you make a sample mission or something ?

This post was edited by Laerte261 (2016-09-28 22:51, 749 days ago)


Author Message


Posts: 1589
Rank:


Level: Member

Country: pf
Location: Tahiti
Occupation: too many Arma
Age: 58
In-game name: Kobayashi Maru

 
#4 Posted at 2016-09-29 08:38        
     
RemoteExec serverCommand? For some evident reason, no one can kick without being an admin.

PLEASE CONTACT ME ON BI FORUMS FOR ANY SCRIPT / MOD QUESTION. TKS

Author Message


Posts: 1189
Rank:


Level: Member

Country: tr
Location:
Occupation: Computer Science student
Age: 21
In-game name: Wak

 
#5 Posted at 2016-09-29 13:29        
     
I updated my original post. This only kicks people to the lobby; but I think this is even better since they'll need to pick a different slot after this kick.

Sometimes I like to think as I started the whole "earplugs" thing.

W0lle: The only advice I can give you is: Do not try to understand BI. You will not succeed and it only makes your brain go boom. I would even go so far and say that not even they understand their own actions :-D.

#define getDamage getDammage