• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Door GM

Allesn

Member
Joined
May 4, 2011
Messages
204
Solutions
1
Reaction score
24
Hello, I would like to help me in a script where only the GM can open and close a door.

Thank you.
 
THE QUESTION IS..........





























WHY THE F*** DO YOU WANT A DOOR WHERE GMS CAN ONLY ENTER, F*** SAY /a 2 AND YOU GET IN OMG YOU GUYS STARTED TO ASK USELESS QUESTION AND MAKE THE GOOD SCRIPTERS SKIP OUR REAL SCRIPTING THREADS.
 
Last edited:
THE QUESTION IS..........

WHY THE F*** DO YOU WANT A DOOR WHERE GMS CAN ONLY ENTER, F*** SAY /a 2 AND YOU GET IN OMG YOU GUYS STARTED TO ASK USELESS QUESTION AND MAKE THE GOOD SCRIPTERS SKIP OUR REAL SCRIPTING THREADS.

Hmm I think he's asking about a script that only support people can enter... I think it will be a good idea released it! :)
 
Explaining after this door area will be an event where when GM closed the door, no one else can pass.
 
Posting in portuguese because of request

- Cria a porta no map editor, e seta um aleatório ActionID nela, exemplo: 7534
- Cria a chave in-game /i 2091
- Coloca ela no chão, um sqm à sua frente
- Dê /attr aid 7534

Pronto, você tem uma chave unica pra trancar aquela porta, só com aquela chave poderão abrir/fechar a porta... Deve dar certo :P
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

	if getPlayerAccess(cid) >= 3 then
		doTeleportThing(cid, { x = 111, y = 111, z = 7 })
		doSendMagicEffect({ x = 111, y = 111, z = 7 }, 10)
		doPlayerSendTextMessage(cid, 25, 'Welcome '..getPlayerName(cid)..'.')
	else 
		doPlayerSendTextMessage(cid, 25, 'You do not permission to access this door.')
	end
	return true
end

Kkkkkk
 
Radium, he wants an door for a event, gm open and close it to event start/finish... Tough it's easier to put an rock or something to block lol
 
Back
Top