Sporny Posted February 2, 2015 Report Share Posted February 2, 2015 I am working on a script which let admins spawn some items via mouse wheel menu. How can i get the Position of the player and let him spawn a item in front? I have the menu, but it dont spawn anything, because there are no coords. Sorry for my bad english :( Link to comment Share on other sites More sharing options...
nedfox Posted February 2, 2015 Report Share Posted February 2, 2015 That totally depends how your admin tool works / who made it. The 2 I know have a selection for a "target player", you will need to get that ID to poke _this into your spawn script. If you're able to script admin tools, you also should be able to determine in the current tools the methods that spawns items in front of YOU, and change "YOU" to "HIM". Link to comment Share on other sites More sharing options...
Suppe Posted February 2, 2015 Report Share Posted February 2, 2015 for what ? or why are you not using the admintool ? everything is in it ! sounds more then you want to write a cheat! ?! or at least you open all doors for hackers because you have a lot of be fiter open. nedfox 1 Link to comment Share on other sites More sharing options...
nedfox Posted February 2, 2015 Report Share Posted February 2, 2015 LOLz.. Spawning a mine in front of a player might be good fun tho ! Link to comment Share on other sites More sharing options...
Sporny Posted February 2, 2015 Author Report Share Posted February 2, 2015 i want to spawn item-bundles.... not single items..... so admins dont have to select all single items in the adminmenu.... Link to comment Share on other sites More sharing options...
MrPredatorr Posted February 2, 2015 Report Share Posted February 2, 2015 Try something like this? Might not be the correct way of doing it but it works. _Crate = "B_supplyCrate_F" createVehicle position player; clearWeaponCargoGlobal _Crate; clearMagazineCargoGlobal _Crate; clearBackpackCargoGlobal _Crate; clearItemCargoGlobal _Crate; Link to comment Share on other sites More sharing options...
Sporny Posted February 3, 2015 Author Report Share Posted February 3, 2015 Thanks man! Thats all i need :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now