Results 1 to 5 of 5

Thread: Addon restrict to player "s1"

  1. #1

    Addon restrict to player "s1"

    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
    Code:
    Sqh=this addAction ["Get Intel !", "intel.sqf"];

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

  3. #3
    Master Gunnery Sergeant
    Join Date
    Mar 8 2011
    Location
    Poland, Sieradz
    Posts
    1,262
    Sqh= s1 addAction ["Get Intel !", "intel.sqf"]; it worked for *.sqs, maybe will not work for *.sqf

  4. #4
    Master Gunnery Sergeant 1PARA{God-Father}'s Avatar
    Join Date
    Jul 30 2010
    Posts
    1,224
    Author of the Thread
    Quote Originally Posted by Celery View Post
    Sqh = this addAction ["Get Intel!", "intel.sqf", nil, 1, true, true, "", "vehicleVarName _this == 's1'"];
    Worked great thanks

  5. #5
    Master Gunnery Sergeant 1PARA{God-Father}'s Avatar
    Join Date
    Jul 30 2010
    Posts
    1,224
    Author of the Thread
    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 .

    Code:
    ////_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 "," !
    Last edited by psvialli; Jun 9 2012 at 13:09. Reason: Solved

Similar Threads

  1. CfgVehicles: overriding "accuracy", "camuflage" and "sensitivity"
    By fabrizio_T in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 4
    Last Post: Apr 18 2013, 19:21
  2. Help, No Night Vision in single player Mission "Dogs of War"
    By jduryee in forum ARMA 2 & OA - TROUBLESHOOTING
    Replies: 0
    Last Post: Jul 9 2009, 16:34
  3. Add "LAND", "Up" and "Down" actions to command menu
    By EricM in forum ARMA 2 & OA - SUGGESTIONS
    Replies: 4
    Last Post: Jul 4 2009, 19:01
  4. "Custom Face" Option Missing from Edit Player Menu
    By triplea007 in forum ARMA 2 & OA - TROUBLESHOOTING
    Replies: 4
    Last Post: Jul 3 2009, 11:59
  5. Eventhandler in a "addon" or the "mission" itself
    By [IT|Q] in forum OFP : CONFIGS & SCRIPTING
    Replies: 12
    Last Post: Sep 21 2003, 01:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •