Jump to content

[HELP] A little~> [SOLVED]


PaulDK

Recommended Posts

Try using this code:

function kickPing() 
    for i, zPlayer in ipairs(getElementsByType("player")) do 
        local name = getPlayerName ( zPlayer ) 
        if (getPlayerPing(zPlayer) >= 2) then 
            kickPlayer(zPlayer, "Your ping is over 2!") 
            outputChatBox("[ADMIN BOT] What a ping ".. name .." you got 1000 ping you will get kick.", getRootElement(), 255, 255, 0, false) 
        end 
    end 
end 
setTimer(kickPing, 10000, 0) 
addEventHandler("onResourceStart", getRootElement(),kickPing) 
  

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