Guest User

Untitled

a guest
Jan 16th, 2015
747
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. hook.Add( "canKeysLock", "OrgDoorLocking", function( ply, door )
  2. if IsValid( door:getDoorOwner() ) then
  3. if isInSameOrg( orgGetUID( door:getDoorOwner() ) , ply:SteamID64() ) then
  4. return true
  5. end
  6. end
  7. end)
  8.  
  9. hook.Add( "canKeysUnlock", "OrgDoorUnlocking", function( ply, door )
  10. if IsValid( door:getDoorOwner() ) then
  11. if isInSameOrg( orgGetUID( door:getDoorOwner() ) , ply:SteamID64() ) then
  12. return true
  13. end
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment