Jump to content

How to make base with passworded GATE ?? HELP


Phoenixx

Recommended Posts

Posted

I don't know what the most efficient way would be, but I'd assume you can make use of ColShapes to recognize whenever a player gets close to the gate, and prompt them with a message on what command and/or keybind to use.

As for the password, you could use setElementData to temporarily store the password(Data is not kept after server restart, to store it after a restart you'll have to use SQL). Then you can compare if the entered password is equal or not to the actual password. And move the gate accordingly.

Then again, as I said, there might be a better way to accomplish this. This is simply how I personally would do it. Give it a try, play around with it and see what you can achieve.

If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.

  • MTA Team
Posted

One of the [VCP] leaders // honorary member of the =PCP= gang.

 

Do not PM me your MTA:SA Client / Server support questions, Lua scripting questions, unban requests or server toplist concerns - please ask them here: MTA:SA Support subforum, here: Scripting subforum, here: Ban appeals or here: Servers instead.

For other inquiries - please expect delays in replies when messaging me.

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...