Jump to content

Moving gates for certain name


slash01

Recommended Posts

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

Link to comment

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

Link to comment

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.

Link to comment
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.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...