Jump to content

Wanted-system


Rotti

Recommended Posts

addCommandHandler("wanted", 
function(player, cmd, name, level) 
    local target = getPlayerFromName(name) 
    local level = tonumber(level) 
    if target then 
        if level and level >= 1 and level <= 6 then 
            setPlayerWantedLevel(target, level) 
            outputChatBox("Done.", player, 255, 255, 255) 
        else 
            outputChatBox("Syntax: /wanted  <1-6>", player, 255, 255, 255) 
        end 
    else 
        outputChatBox("This player does not exist.", player, 255, 255, 255) 
    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...