Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- For server owners.
- -- Paste this into: lua/autorun/server, name it anything you like
- -- This script creates a teleport in the centre of the water tower which teleports admins to the admin room
- local function SearchForPlayer()
- local pos = Vector(-348, 5196, 2661)
- local tel = Vector(-184, -1416, 7172)
- local distance = 64
- local found = ents.FindInSphere(pos,distance)
- if(found) then
- if(type(found)=="table") then
- for k, v in pairs(found) do
- if(v:IsPlayer()==true) and ((v:IsAdmin()) or (v:IsSuperAdmin())) then
- v:SetPos(tel)
- end
- end
- elseif(type(found)=="entity") then
- if(found:IsPlayer()==true) and ((found:IsAdmin()) or (found:IsSuperAdmin())) then
- found:SetPos(tel)
- end
- end
- end
- end
- timer.Create("swg_searchforplayer", 0.5, 0, SearchForPlayer)
Advertisement
Add Comment
Please, Sign In to add comment