Jump to content

[Help]Lua


[GD]sXe

Recommended Posts

Please Help me,

Player this one text "sikerim" writing how to kick?

function cevap( messageclean, messageType) 
if messageType == 0 then 
    local message = string.lower(messageclean) 
    if string.find(message, "sikerim") then 
        outputChatBox("#ad1313Küfür-BOT#ffffff: #ad1313Küfür ettiği için oyundan atıldı "..getPlayerName(source).."!", getRootElement(), 255, 255, 255,true) 
        kickPlayer(player,"Küfür")     
    end 
end 
end 
addEventHandler( "onPlayerChat", getRootElement(player), cevap ) 

WARNING: otocevap\denetim.lua:6: Bad argument @ 'kickPlayer' [Expected player at argument 1, got nil] 

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