Jump to content
Sign in to follow this  
1para{god-father}

Addon restrict to player "s1"

Recommended Posts

Can anyone please let me know how I can restrict a addaction so only player named "s1" can see / use it ?

using this on my object

Sqh=this addAction ["Get Intel !", "intel.sqf"];

Share this post


Link to post
Share on other sites

Sqh = this addAction ["Get Intel!", "intel.sqf", nil, 1, true, true, "", "vehicleVarName _this == 's1'"];

Share this post


Link to post
Share on other sites

Sqh= s1 addAction ["Get Intel !", "intel.sqf"]; it worked for *.sqs, maybe will not work for *.sqf

Share this post


Link to post
Share on other sites
Sqh = this addAction ["Get Intel!", "intel.sqf", nil, 1, true, true, "", "vehicleVarName _this == 's1'"];

Worked great thanks

Share this post


Link to post
Share on other sites

Could not find anything on the Addaction for MP , Is this correct ?

I need it so only players get the addaction if "actionActive" is true .

////_informant is the man I created/////

[nil, _informant, "per", rADDACTION, "Get Information","intel1.sqf""",1,false,true,"","actionActive"] call RE;

OK solved i was missing a "," !

Edited by psvialli
Solved

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  

×