Jump to content

xJordannx

Member
  • Content Count

    25
  • Joined

  • Last visited

  • Medals

Everything posted by xJordannx

  1. Hey, I was wondering if anybody could make me a script where if you get near to a player, you'll get an option to "Handcuff" them which will make them switch to the animation: ActsPsitMstpSnonWunaDnon_sceneNikitinDisloyalty_Sykes And then an option to "Uncuff" which will uncuff them. Thanks.
  2. Hi, I'm new to ArmA 2 coding and I was wondering if anyone could help me make a script so that when you press Tab it puts your hands on your head, Thanks.
  3. Hi, I'm having an issue with getting say3d to work the way I want, basically I want it so if I press a button on the keyboard it will say a sound in the area of the person pressing the button, however it is saying the sound over the entire map. Here is my init.sqf for say3d: if (isNil "PVEH_netSay3D") then { PVEH_NetSay3D = [objNull,0]; }; "PVEH_netSay3D" addPublicVariableEventHandler { private["_array"]; _array = _this select 1; (_array select 0) say3D (_array select 1); }; fn_netSay3D.sqf: private ["_obj","_snd"]; _obj = _this select 0; //object _snd = _this select 1; //sound // broadcast PV PVEH_netSay3D = [_obj,_snd]; publicVariable "PVEH_netSay3D"; // run on current machine also if not dedi server if (not isDedicated) then {_obj say3D _snd}; true and the keybind part: case 79: { nul = [player,"sound1"] call fn_netSay3D; }; Any help would be appreciated, Thanks.
  4. Hi, every time I respawn or get killed etc, my addAction options will disappear, could anyone help? Thanks.
  5. Hi, I tried using an event handler but it didn't seem to work, would you mind explaining how I would create a file that keeps calling the addaction? Thanks. ---------- Post added at 22:12 ---------- Previous post was at 20:46 ---------- Found a fix myself, don't need help any more.
  6. How am I ripping off LMC's code?
  7. That sounds great, thanks very much.
  8. Init.sqf: masterUIDArray = ["########"]; if (getPlayerUID player in masterUIDArray) then { player addAction ["Spawn f35b", "Spawnf35b.sqf"]; }; Spawnf35b.sqf _vehicle = createVehicle ["F35B", getPos player, [], 20, "CAN_COLLIDE"]; Basically, I want it so the person with the UID has an option to spawn an F35B, and this won't show the "Spawn f35b" option.
  9. Found a problem with this, once a player gets into the radius with another player that has previously said a sound out of the radius, the player will hear everything he has previously said.
  10. Hey, thanks for that, I haven't tried it yet because I thought of something else that I'd like added with that. Basically, I want the person that's cuffed to have an option to "Break out of cuffs", which would take 15 secs and they'd be able to break out, do you think you could do this? Thanks. EDIT: I have a script to make the player put his hands on his head when he presses the 1 key: case 2: { player switchMove "AmovPercMstpSnonWnonDnon_AmovPercMstpSsurWnonDnon"; }; Would you also be able to make it so you can only Handcuff a player that has their hands on their head? Thanks.
  11. Hi, I was wondering if it was possible to disable a key's function, for example, if you press 1 on the numpad it will look to the left, but I have changed it so that when someone presses it, it says a sound, but it also looks to the left. So for this example I'd want to remove it looking to the left.
  12. Could you explain how to do that? Thanks.
  13. I tried searching but all I can seem to find is player on AI not player on player.
  14. Thanks, that works, but for some reason, when I respawn/die the option to spawn the f35b disappears, any idea why?
  15. Works, thanks! But is there any way to make it so it's the UID instead of the name?
  16. Hi, I was wondering if there is any addon/script where it let's admins be able to spawn vehicles, spawn guns, teleport etc without the client needing any file to connect to the server.
  17. I put my UID of course :P, I'm not THAT stupid haha XD I also tried: if nameOfPlayer == "xJordannx" then { player addAction ["Spawn f35b", "Spawnf35b.sqf"]; }; And the option for "Spawn f35b" still wouldn't show up, however I tried just: player addAction ["Spawn f35b", "Spawnf35b.sqf"]; And that worked, but I need it so only I can use it.
  18. Perfect, thanks very much.
  19. I have my sounds in a file called sounds.hpp. here is the file: class sound1 { name = "sound1"; sound[] = {"\music\sound1.ogg", 1, 1}; titles[] = {}; }; What would you recommend me changing the volume to?
  20. So.. could somebody explain to me how to do it, sorry, I'm a noob at ArmA scripting :D
  21. Sorry for gravedigging this YEARS old post, but I am looking for the same thing and I was wondering if it's at all possible to do, and how?
  22. Hi, I am getting 3 issues with TA2DST and would appreciate any help. 1) I can't run the server with BattlEye enabled, when I try to start it, it says "BattlEye initialization failed". 2) The ping is showing '2500' on the ArmA2 server list, which is not the correct ping. 3) When I am running the server, the arma2server.exe program will randomly close itself.
×