Jump to content

/camp Command


Recommended Posts

  
function camp ( command, text ) 
    local thePlayer = getPlayerFromNick ( text ) 
  outputChatBox ( "Dont Camp "..thePlayer.." Or Get Kicked By An Admin!") 
end 
addCommandHandler ( "camp", getPlayerFromNick, campcommand) 
  

Thats my /camp command i made but it doesnt work can someone tell what ive dont wrong? i need this command :P

hope someone knows

Greatings Frank

Link to comment

function camp ( command, text ) 
  local thePlayer = getPlayerFromNick ( text ) 
  if ( thePlayer ) then 
    outputChatBox ( "Dont Camp " .. getClientName ( thePlayer ) .. " Or Get Kicked By An Admin!", getRootElement() ) 
  end 
end 
addCommandHandler ( "camp", camp ) 

or

function camp ( command, text ) 
  local thePlayer = getPlayerFromNick ( text ) 
  if ( thePlayer ) then 
    outputChatBox ( "Dont Camp Or Get Kicked By An Admin!", thePlayer ) 
  end 
end 
addCommandHandler ( "camp", camp ) 

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