RE: If project manager is disabled(means the user is not active) , do not allow to win the opportunity and throw some alert message.
Hi Rits,
You can try to achieve it with OOB sync workflow, which is one no code way.
In that we get the option of Stop Workflow and with cancelled status we can set the message as well.
Due to the workflow's own limitation of not being able to get the field value of the parent record of the parent records(across two levels), you need get manager of the user firstly.
Steps:
1.Create another user lookup field to store user's manager, which also can be achieve through workflow:


Or you can use other ways to get status of user's manager, and pass it to the opportunity form.
2.Then you can crate another real-time workflow to show alert message:

Test:

