Jump to content

Help in Kick Player!


E-mail

Recommended Posts

Hi all i have made tag Fake Kick !

bug some times he dont kick the players use [C]

exampl

if i used [C] Tag he say login or you well Kicked For ues Fake Tag

function protectTag ( ) 
    for i,v in ipairs ( getElementsByType ( "player" ) ) do 
        local playername = getPlayerName ( v ) 
        if string.find ( playername, get ( 'Tag' ) ) then 
            local accname = getAccountName ( getPlayerAccount ( v ) ) 
            if hasObjectPermissionTo ( v, 'function.kickPlayer' ) then 
                return true 
            else 
                setTimer ( outputChatBox, 10000, 1, 'Please login or be kicked!', v ) 
                setTimer ( kickPlayer, 20000, 1, v, 'ClanFaking - You have been warned!' ) 
            end 
        end 
    end 
end 
  
setTimer ( protectTag, 20000, 0 ) 
addEventHandler ( 'onResourceStart', resourceRoot, protectTag ) 
  

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