Growlith1223 Posted August 11, 2012 Author Share Posted August 11, 2012 ok so i know there is a tutorial for this but it's not for CS:DESo 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 modGlobalsand add```Public SStatus As String```Then after that make a timer and set the Interval to 1000and add this in the code.```If ConnectToServer(1) Then Sstatus = "Online"Else Sstatus = "Offline"End IfTimer1.Enabled = False```and ur done!Change the colors to however you want! :3 Link to comment Share on other sites More sharing options...
Ne-o-x Posted August 11, 2012 Share Posted August 11, 2012 Clean. I like it :D Link to comment Share on other sites More sharing options...
Growlith1223 Posted August 11, 2012 Author Share Posted August 11, 2012 i try to keep my tutorials and fixes as minimal as possible. Link to comment Share on other sites More sharing options...
Ariel Posted August 11, 2012 Share Posted August 11, 2012 That is so usfull how didnt i thought about it :P thanks! Link to comment Share on other sites More sharing options...
Growlith1223 Posted August 11, 2012 Author Share Posted August 11, 2012 lol no problem Link to comment Share on other sites More sharing options...
NightmareX91 Posted August 12, 2012 Share Posted August 12, 2012 ~~I do believe the Timer1.Enabled = False is unnecessary for this. Some people like leaving their clients open to wait for the server to return to its online state.~~I just noticed what happens if you remove the Timer1.Enabled = False. My apologies. Link to comment Share on other sites More sharing options...
Sunku Posted February 4, 2013 Share Posted February 4, 2013 > ok so i know there is a tutorial for this but it's not for CS:DEWhat was the other one? I know it was for EO. Link to comment Share on other sites More sharing options...
abhi2011 Posted February 4, 2013 Share Posted February 4, 2013 > What was the other one? I know it was for EO.It just checks the socket connection and changes a label. Link to comment Share on other sites More sharing options...
Growlith1223 Posted February 4, 2013 Author Share Posted February 4, 2013 > It just checks the socket connection and changes a label.This has no reference to a label, this is all rendered to the screen. Link to comment Share on other sites More sharing options...
abhi2011 Posted February 4, 2013 Share Posted February 4, 2013 My post not related to this tutorial but the other one.Either way I'll add a quote. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now