08.01.2017, 01:45
Just do this:
Do negative checks instead of posotive checks, I hope you get what I mean.
PHP код:
if!IsPlayerConnected()) return // error message
// your code