Jump to content
Sign in to follow this  
audiocustoms

Opening one specific soldier to 5 GUIDs

Recommended Posts

Hi...

I'm kinda new to editing missions and scripting, but my question is advanced...

Is there a posibillity that only a small amount of GUIDs can spawn as a specific soldier?

I'm editing a Domination2 Takistan map (i think it's the 2.71?!?) and inserted the High Comand Module.

There will be one Commander and his Radio Opperator and i want only the admins to spawn as those two soldiers.

How can i achieve that without scripting dozens of pages without any clou?

THX and sorry for my bad english.

I hope i posted my question in the right place.

Greez

Share this post


Link to post
Share on other sites

You can create an array for your admins, and have them only be aloud to use the player models you choose. You would have to use UIDs though not GUIDs.

This would be whitelist.sqf:

private[“_uidâ€];
_uid = getPlayerUID;
Admin_Array = [list,OF,UIDS,SEPARATED,BY,COMMAS];
if(_uid in Admin_Array) then
{
isAdmin = true;
} else {
isAdmin = false;
};

Add this to your init.sqf:

call compilePreprocessFile "whitelist.sqf";

Than you would have to give a name to the player models that you want on the whitelist and than define it similar to above.

Share this post


Link to post
Share on other sites

Your init.sqf should alternately look like this. As compile and preProcessFile are two different commands.

call compile preProcessFile "whitelist.sqf";

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×