hello, is possible add to dont attack and damage player with same ip?
i have this for same guild
tfs 0.4 3777
i have this for same guild
Lua:
function onCombat(cid, target)
if getTileInfo(getThingPos (cid)). pvp then return true end
if isPlayer(target) and getPlayerGuildId(cid) ~= 0 and getPlayerGuildId(cid) == getPlayerGuildId(target) then
doPlayerSendCancel(cid, "Não pode atacar players da mesma guild.")
return false
end
return true
end
tfs 0.4 3777