Jump to content

Script problem


SteeLRO

Recommended Posts

Posted

Hey all. I have a problem with my script.

Why allow everyone to access the command?

function abcd(source,command) 
  local Team = getPlayerTeam(source) and getTeamName(getPlayerTeam(source)) 
     if (Team ~= "Police") then 
  
           createObject(8082,1556,-1612,13.60000038147,0,0,0.25) 
  
addCommandHandler("police",abcd) 

560x95_FFFFFF_FF9900_000000_000000.png
Posted
function abcd(source,command) 
  local Team = getTeamName(getPlayerTeam(source)) 
     if (Team == "Police") then 
  
           createObject(8082,1556,-1612,13.60000038147,0,0,0.25) 
  
addCommandHandler("police",abcd) 

Looking for tutorials or information? check out: www.simpleask.co.uk

Posted
function abcd(source,command) 
  local Team = getTeamName(getPlayerTeam(source)) 
     if (Team == "Police") then 
  
           createObject(8082,1556,-1612,13.60000038147,0,0,0.25) 
  
addCommandHandler("police",abcd) 

Ty

560x95_FFFFFF_FF9900_000000_000000.png

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...