Rotti Posted January 5, 2013 Share Posted January 5, 2013 Hello, I want a wanted-sysem on my server. If you type /wanted <1-6> the player should get wanteds. But i don't know how to do that. Please help Link to comment
abu5lf Posted January 5, 2013 Share Posted January 5, 2013 getPlayerWantedLevel getPlayerFromName Link to comment
TAPL Posted January 5, 2013 Share Posted January 5, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now