Advertisement
slp13at420

custom instance entry check

Oct 3rd, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. -- this is supposed to check if a player is in a guild when they enter
  2. -- instance Gruul's lair
  3. -- if they are not in a guild then they will get teleported back outside
  4. -- the instance.
  5.  
  6. function Gruulguildcheck(event, plr)
  7.  
  8.  
  9.     if (plr:GetMapId()==565) and (plr:IsInGuild()~=true) then
  10.         plr:SendBroadcastMessage("you must be in a guild to enter these catacombs.")
  11.         plr:SendBroadcastMessage("I command you to leave.")
  12.         plr:MovePlayerTo(60, 30, -3, 4.2, 4096)
  13.         end
  14. end    
  15.        
  16.  RegisterServerHook(4, "Gruulguildcheck")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement