• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Anti Hack Lua

Tegardee

The Boss
Joined
Jun 18, 2014
Messages
106
Reaction score
0
Location
Brazil
Hello friends, so I would like one of you to help my script Anti Hack Lua.

like he's not sending the message to the player who is trying to get into the business, and an error in TFS, when he tries to enter.

Code:
[17/07/2014 15:28:57] [Error - CreatureScript Interface]
[17/07/2014 15:28:57] data/creaturescripts/scripts/hack.lua:onLogin
[17/07/2014 15:28:57] Description:
[17/07/2014 15:28:57] (luaDoPlayerPopupFYI) Player not found

script:

Code:
function onLogin(cid)
local p = { 
name = {"Chapolin"}, -- Libert player with Name: {"Chapolin"}
ip = {"192.168.1.32"}, -- Libert player with IP: {"192.168.1.32"}
}
if getPlayerGroupId(cid) >= 3 then
if isInArray(p.ip, doConvertIntegerToIp(getPlayerIp(cid))) == false then
if isInArray(p.name, getCreatureName(cid)) then
doPlayerSendTextMessage(cid, 22, "Welcome!")
end
end
return true
end
return doPlayerPopupFYI(cid, 22, "Sorry you're not allowed to play on this account.")
end

detail, if possible I would like to send the message in PopupFYI equal the ban system and prevent the player login
 
Last edited:
Back
Top