Ok i made this if check, if swimming its ok. If flying i get the message. If neither swimming or flying i ofc get the message.
But how come im stopped when flying ?
Code:
if ((SECT(was_in) == SECT_WATER_SWIM) || (SECT(going_to) == SECT_WATER_SWIM)) {
if (!IS_NPC(ch) && (!AFF_FLAGGED(ch, AFF_SWIM) || !AFF_FLAGGED(ch, AFF_FLYING))) {
send_to_char(ch, "You can't swim right now.\r\n");
return (0);
}
}