Jump to content

[HELP] wanteds command


opnaiC

Recommended Posts

function wanteds(player) 
    local acc = getPlayerAccount(player) 
    local fac = getAccountData(acc,"Faction") or 0 
        if (tonumber(fac) == 2) then 
            outputChatBox("Список разыскиваемых:", player, 100, 100, 0) 
            for i, v in ipairs(getElementsByType("player")) do 
                if getPlayerWantedLevel(v) >= 1 then 
                    wanted = getPlayerWantedLevel(v) 
                    outputChatBox(""..getPlayerName(v).." Уровень розыска: "..wanted.."", player, 100, 100, 0) 
                end 
            end 
        end 
    end 
addCommandHandler("wanteds", wanteds) 

What is wrong here ?

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