21-10-2008, 08:13 PM
Try this:
Delete the old If statement and replace with that.
Code:
' Check if map is attackable
If Not Map(GetPlayerMap(Attacker)).Moral = MAP_MORAL_NONE Then
If GetPlayerPK(Victim) = NO Then
Call PlayerMsg(Attacker, "This is a safe zone!", BrightRed)
Exit Function
End If
End If
Delete the old If statement and replace with that.