Jump to content

[Tutorial]How to make a gate with password


steadyfi

Recommended Posts

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 !

Link to comment

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)

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

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