• 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!

Staff Room

Bazi

Member
Joined
Oct 24, 2011
Messages
270
Reaction score
8
Location
Germany
Hello ppl i need your help ....

i need to make an staff room for tutors,senior tutors,gms,cms,gods

but i dont know how to do please help me thank you :)
 
You need to make a script that has "if getPlayerGroupId(cid) > 1" in it, so only players with Group Id above 1 (which is normal player) can enter/walk on the tiles.
 
here u are

Code:
function onUse(cid, item, frompos, item2, topos)
        if getPlayerGroupId(cid) > 1 
            pos = getPlayerPosition(cid)
            if pos.x == topos.x then
               if pos.y < topos.y then
                  pos.y = topos.y + 1
               else
                  pos.y = topos.y - 1
               end
            elseif pos.y == topos.y then
                   if pos.x < topos.x then
                      pos.x = topos.x + 1
                   else
                      pos.x = topos.x - 1
                   end
            else
                doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
            return true
            end
            doTeleportThing(cid,pos)
            doSendMagicEffect(topos,12)
         else
            doPlayerSendTextMessage(cid,22,'Only Tutors  can access there.')
         end
         return true
end

this in actions.xml

Code:
	<action actionid="2000" event="script" value="Tutorsdoor.lua"/>

add the same actionid to the door in map editor
 
Back
Top