Added a NEEDVALIDPLAYER macro for debugging

And call it in some scripts that require to have a valid player number
so that if something bugs out, it'll complain in debug mode.