want to have Cannotbeattacked but i want that that monster can attack me and characters no please could anyone help me? or how to make a new flag that players cant kill/attack you,and you cant attack her?
but monster should can attacking you
thanks
or how i can make if player have group id 7 he cannot be attacked or attack a player? maybe something like this?
but monster should can attacking you
thanks
or how i can make if player have group id 7 he cannot be attacked or attack a player? maybe something like this?
function onCombat(cid, target)
if (getPlayerGroupId(cid) == 7 and getPlayerGroupId(target) == 1) or isPlayer(target) == FALSE then
return TRUE
else
doPlayerSendCancel(cid, "You cannot attack this player.")
return FALSE
end
end
Last edited: