Mirage Engine
Simple Allow Only One Instance of Client - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Simple Allow Only One Instance of Client (/showthread.php?tid=48)



Simple Allow Only One Instance of Client - Tutorial Bot - 01-06-2006

Author: Jourdan
Difficulty: 1/5
See also: http://www.key2heaven.net/ms/forums/viewtopic.php?t=70

:: CLIENT SIDE ::
In Sub Main, add:
Code:
If App.PrevInstance = True Then
        Call MsgBox("Only one instance of the game can be running.", vbOKOnly, GAME_NAME)
        End
    End If
That's all!