Jump to content
  • 0

Disabling Commands For Groups


micheal1230

Question

6 answers to this question

Recommended Posts

  • 0

you need to check if he is admin or not then edit the script

function Superman.onJump(key, keyState) 
  local self = Superman 
  
  local admin = getElementData(localPlayer, "admin") 
  local parachuting = getElementData(localPlayer, "parachuting") 
  if admin>1 and not parachuting then 
      local task = getPedSimplestTask(localPlayer) 
      if not isPlayerFlying(localPlayer) then 
        if task == "TASK_SIMPLE_IN_AIR" then 
          setElementVelocity(localPlayer, 0, 0, TAKEOFF_VELOCITY) 
          setTimer(Superman.startFlight, 100, 1) 
        end 
      end 
  end 
end 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...