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.
script:
detail, if possible I would like to send the message in PopupFYI equal the ban system and prevent the player login
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: