This is a small project that determines whether you're playing a Scratch project online or offline. It uses the 'obsolete!' block to achieve this goal. You can delete the sprite that tells you whether or not you're online/offline; that's not important. The script is done in the Stage. The Stage sets a variable to 'no' if playing online, and sets it to 'yes' if playing offline. You can download this Scratch project and build upon it to stop the user from playing your game online, say if it lags in the online player. I'll let everything else up to you. Download the project to see how I did it.