boxman80 Posted October 8, 2013 Report Share Posted October 8, 2013 Hi folks, just looking for a quick and simple way to provide teams that register on our server a basic supply crate that provides them with some standard building gear to get them started. All suggestions appreciated. Thanks Link to comment Share on other sites More sharing options...
0 Axe Cop Posted January 9, 2014 Report Share Posted January 9, 2014 sure it works if you do it right, anyway you can try it with permaLoot but that variable is not used for vehicles usually and there might be other bugs then :D Link to comment Share on other sites More sharing options...
0 DY357LX Posted January 19, 2014 Report Share Posted January 19, 2014 Going back to the starter box (sorry! :D )... Is there a way to: 1: Only allow one box per restart of the server? 2: Kill any players who attempt to access the box who aren't authorized to do so. I'm currently Googling for terms like "ArmA scripting counter, count, count if" etc but not making much progress. Link to comment Share on other sites More sharing options...
0 Axe Cop Posted January 19, 2014 Report Share Posted January 19, 2014 "ArmA scripting counter"? what should that be a counter is a simple variable you count up or what :D counter = counter + 1; there you have a counter :D about killing players who access the box, should be possble if intercept the gear event (gear thing is always display 106 I think) but I don't know if you can see if that is the gear from the box or any other vehicle/player tha easily :D you always come up with such complicated script ideas, maybe start with something simple to learn it first? :) Link to comment Share on other sites More sharing options...
0 DY357LX Posted January 20, 2014 Report Share Posted January 20, 2014 (edited) I was about to test this, but our server is down :-P if ((getPlayerUID player) in ["########"]) then { // list of admin UID's who can use the script if (_canDo && (speed player <= 1)) then { boxCounter; if (s_player_donorBox < 0 && (boxCounter < 1)) then { sleep 5; s_player_donorBox = player addaction [("<t color=""#007ab7"">" + ("Donor Box") +"</t>"),"Scripts\donorBox.sqf","",5,false,true,"",""]; boxCounter = boxCounter + 1; }; } else { player removeAction s_player_donorBox; s_player_donorBox = -1; cutText [format["Only 1 box per restart."], "PLAIN DOWN"]; }; }; Probably won't work but worth a shot. Edited January 20, 2014 by DY357LX Link to comment Share on other sites More sharing options...
0 Axe Cop Posted January 20, 2014 Report Share Posted January 20, 2014 I don't really see the point why admins should be restricted like that? :P also if the admins relog all variables get reset (your boxCounter is only player local so everything you do is removed after a player logs out). anyway to initialize the variable, instead of "boxCounter; use something like if (isNil "boxCounter") then { boxCounter = 0; }; Link to comment Share on other sites More sharing options...
Question
boxman80
Hi folks, just looking for a quick and simple way to provide teams that register on our server a basic supply crate that provides them with some standard building gear to get them started. All suggestions appreciated.
Thanks
Link to comment
Share on other sites
30 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now