! I have ths script, it should makes when a player have a group id =2 he cant attack any player or bee attacked, and when a player have the group id = 1 he can attack all players with groupid 1 or been atacked by other eople with groupid 1 but isnt workng :/
i hope someone help me
PHP:
function onCombat(cid, target)
if isPlayer(target) and (getPlayerGroupId(cid) == 2 or getPlayerGroupId(target) == 2) then
return not doPlayerSendCancel(cid, 'You cannot attack this player.')
end
return true
end