Hi friends. This code is from another user here from Otland. It does not allow you to attack other characters with 2 characters. What I'm looking for is that it allows you to attack with only 2 characters.
Code:
Code:
Lua:
if self and target then
if self:isPlayer() and target:isPlayer() then
local playersByIp = Game.getPlayersByIPAddress(self:getIp())
if #playersByIp > 1 then
for i = 1, #playersByIp do
if playersByIp[i] ~= self and playersByIp[i]:getTarget() == target then
return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER
end
end
end
end
end