sumariello Posted August 7, 2012 Share Posted August 7, 2012 Hi, are already 2 hours I'm trying to create a gate, however, go nn. I did the lua file and I put the coordinates. can you tell me how to do it please? Link to comment
Agon Posted August 7, 2012 Share Posted August 7, 2012 did you create the gate on map editor? Link to comment
sumariello Posted August 7, 2012 Author Share Posted August 7, 2012 yes but then I removed the gates Link to comment
Tails Posted August 7, 2012 Share Posted August 7, 2012 I am still a noobee myself, but I think you'll have to use the createObject function. https://wiki.multitheftauto.com/wiki/CreateObject Link to comment
Tete omar Posted August 7, 2012 Share Posted August 7, 2012 try these createObject -- create the object moveObject -- and move it Link to comment
sumariello Posted August 7, 2012 Author Share Posted August 7, 2012 this is what I did this morning Link to comment
Tete omar Posted August 7, 2012 Share Posted August 7, 2012 use notepad ++ better for lua http://notepad-plus-plus.org/download/v6.1.5.html and copy your code and post it here not a picture Link to comment
sumariello Posted August 7, 2012 Author Share Posted August 7, 2012 but can you tell me what I missed here? Link to comment
sumariello Posted August 7, 2012 Author Share Posted August 7, 2012 I made a mod from this site and I modified it by following the mod https://community.multitheftauto.com/ind ... ils&id=812 Link to comment
Tete omar Posted August 7, 2012 Share Posted August 7, 2012 I made a mod from this site and I modified it by following the modhttps://community.multitheftauto.com/ind ... ils&id=812 mhm what's wrong then ? Link to comment
sumariello Posted August 7, 2012 Author Share Posted August 7, 2012 No I know why I ask you Link to comment
Tete omar Posted August 7, 2012 Share Posted August 7, 2012 Dear sumariello post your code or tell us what's wrong !? Link to comment
sumariello Posted August 7, 2012 Author Share Posted August 7, 2012 I do not know what the problem. This is why I'm asking Link to comment
Agon Posted August 8, 2012 Share Posted August 8, 2012 1) try posting your code here 2) try using /debugscript 3 3) post the error. So scripters can help you.. Link to comment
sumariello Posted August 8, 2012 Author Share Posted August 8, 2012 the code is on the first page Link to comment
sumariello Posted August 8, 2012 Author Share Posted August 8, 2012 I found a problem ... (the one pictured in red) Link to comment
albers14 Posted August 8, 2012 Share Posted August 8, 2012 help pls T_T if getElementModel(thePlayer) == 287 then You just need to set a "then" after the getElementModel stuff. So it would look like this: function openbasegates(thePlayer) if getElementModel(thePlayer) == 287 then -- you code moveobject stuff end end addEventHandler('onColShapeHit', basecol, openbasegates) function closebasegates(thePlayer) if getElementModel(thePlayer) == 287 then -- you code moveobject stuff end end addEventHandler('onColShapeLeave', basecol, closebasegates) Link to comment
sumariello Posted August 8, 2012 Author Share Posted August 8, 2012 and if I want to let only members of a clan as I do? I would put a code to enter Link to comment
albers14 Posted August 8, 2012 Share Posted August 8, 2012 and if I want to let only members of a clan as I do? I would put a code to enter The clan is based on ACL or setElementData? Link to comment
sumariello Posted August 9, 2012 Author Share Posted August 9, 2012 and if I do it with open / gate openers and / chiudicancello, how should I do? Link to comment
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