I tried to make a script that would be impossible to attack members of the same guild.
But it went wrong, I can not attack anyone...
And another... I can kill anyone using magic... I wish it was also impossible to reach members of the same guild with spells.
>>Yes, I am using a translator.
But it went wrong, I can not attack anyone...
Code:
function onAttack(cid, target)
if isPlayer(target) == TRUE then
if getPlayerGuildId(cid) == getPlayerGuildId(target) then
return FALSE
end
end
end
>>Yes, I am using a translator.