slash01 Posted September 11, 2010 Posted September 11, 2010 hi there! i am new to mta, after moving from SAMP, so ill get straight to the point. i want to make some automatic gates, sounds simple right? but i also want to make them only open for my name (Slash01) when i get near them. a couple of years ago, i did it in PAWNO (the samp scripting tool) and it worked, but i cant figure out how to use mta's scripting, a bit complex for me you see any healp greatly appriciated! thanks
BinSlayer1 Posted September 11, 2010 Posted September 11, 2010 You need this for general scripting help (in the left section you have Client functions, Server Functions, Events, Search feature) : https://wiki.multitheftauto.com/ You can create the gate using "createObject" and make it move using "moveObject" functions. You can put a colshape element before the gate, read about it here: https://wiki.multitheftauto.com/wiki/Colshape Then you can activate the gate opening(moving) with "onColShapeHit" and only if getPlayerFromName("Slash01") https://wiki.multitheftauto.com/wiki/OnColShapeHit you can also use Markers if you don't want colshapes, https://wiki.multitheftauto.com/wiki/CreateMarker https://wiki.multitheftauto.com/wiki/OnMarkerHit
dzek (varez) Posted September 11, 2010 Posted September 11, 2010 yup, read tutorial one or two or three times - and you will get it. lua is much simplier than pawn. you can also do much more with mta good luck. BinSlayer1 gave you all useful links i think.. Oh, maybe except link to Unofficial MTA Script Editor - try it - you can find its topic on this (Scripting) subforum - it's sticky topic.
slash01 Posted September 11, 2010 Author Posted September 11, 2010 thanks alot guys, the others on the samp forum are assholes lol thanks however, i have xp, i try to run the script editor and it wont work, so what program do i use to script then?
dzek (varez) Posted September 11, 2010 Posted September 11, 2010 this script editor is working without any problem under win xp.
slash01 Posted September 11, 2010 Author Posted September 11, 2010 this script editor is working without any problem under win xp. well i keep getting a "program must be terminated" error?
dzek (varez) Posted September 11, 2010 Posted September 11, 2010 tried compatibility mode? and have you installed it correctly (including updates)?
slash01 Posted September 11, 2010 Author Posted September 11, 2010 yeah everything is installed fine.. and tried compatability mode...
50p Posted September 12, 2010 Posted September 12, 2010 this script editor is working without any problem under win xp. well i keep getting a "program must be terminated" error? When do you get this error? What XP have you got? Have you installed .NET 2.0? Have you installed MTA or just copied MTA files? Answer these questions in MTASE topic. DO NOT answer them here.
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