ghettobird
LUA newbie
Hello guys, it's me again anyway someone told me they wanted a door that only STAFF MEMBERS can enter so here you go ![Stick Out Tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
now what you need to edit:-
the position where you go when you use the door (from script) AND you need to make an action id for the door FROM RME, and that action id you put it in actions.xml![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
i hope this is useful
eace:
Lua:
function onUse(cid) -- other parameters like 'item' 'itemEx' are not needed in this script so we dont have to add them
if(getPlayerGroupId(cid) >= 2) then
doTeleportThing(cid, {x=1000,y=1000,z=7}, true)
doCreatureSay(cid, "Hello" .. getCreatureName(cid) .. ", you are a staff member, you can pass", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, "Sorry, you are not a staff member!")
end
return true
end
now what you need to edit:-
the position where you go when you use the door (from script) AND you need to make an action id for the door FROM RME, and that action id you put it in actions.xml
i hope this is useful