[GD]sXe Posted April 27, 2015 Share Posted April 27, 2015 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
Vision Posted April 27, 2015 Share Posted April 27, 2015 kickPlayer(player,"Küfür") Replace to this: kickPlayer ( source, "Küfür" ) 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