Jump to content

[Tutorial]How to make a gate with password


steadyfi

Recommended Posts

Posted

Hello ! I'm SWYTeaXSG and today ill show you how to make a basic gate script.

If you have problems or fixes to it please leave you script in the comments !

local gate = createObject(id,x,y,z, 0, 0, rotation ) 
  
function open() 
     
    moveObject(gate, milisec, z,y,z, 0, 0, rotation ) 
     
end 
  
addCommandHandler("open (password)", open) 
  
function close() 
     
    moveObject(gate, milisec, z,y,z, 0, 0, rotation ) 
end 
  
addCommandHandler("close (password)", close) 

I hope it helped ! I only want to help people to make a base on a server !

My Work:

OpenTeams | DayZ Admin Panel | vAuth

Must-Have Library: MTA Lua Async

ApocalipZ Owner

coming back soon!

Posted

That's not a tutorial at all.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

It's not a Tutorial (as Solidsnake14 said), as a tutorial contains information how each/main functions work. Another thing that is wrong is that it's not a password, it's a command, a password would be when you hit for example a marker a gui pops up and you have to type the password in an edit box, then hit a button for it to load, if fail for example jail or kick or whatever, but as I said, this is a command, not a password protection (even if you change: '(password)' to random numbers/letters)

Looking for tutorials or information? check out: www.simpleask.co.uk

Posted

In addition, the code itself doesn't make any sense at all, therefore I suggest no one will try the code in hopes of creating a gate with a password...

If I helped you, please click the like button on the right ;) Thanks!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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