Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[CS:DE]Server Status


Growlith1223
 Share

Recommended Posts

ok so i know there is a tutorial for this but it's not for CS:DE
So here it is!!!!

goto DrawMainMenu and add in
```
    If Sstatus = "Online" Then
        RenderText Font_Default, Sstatus, GUIWindow(GUI_MAINMENU).x + 420, GUIWindow(GUI_MAINMENU).y + 254, Green
    Else
        RenderText Font_Default, Sstatus, GUIWindow(GUI_MAINMENU).x + 420, GUIWindow(GUI_MAINMENU).y + 254, Red
    End If
    RenderText Font_Default, "Status: ", GUIWindow(GUI_MAINMENU).x + 375, GUIWindow(GUI_MAINMENU).y + 254, White

```at the bottom.

Then go into modGlobals
and add

```
Public SStatus As String

```Then after that make a timer and set the Interval to 1000

and add this in the code.
```
If ConnectToServer(1) Then
    Sstatus = "Online"
Else
    Sstatus = "Offline"
End If
Timer1.Enabled = False

```
and ur done!
Change the colors to however you want! :3
Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...