• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Need VB expert's help (bot development)

poopsiedoodle

Gibe moni plos
Joined
Nov 23, 2011
Messages
2,458
Reaction score
586
Location
Georgia
So, I'm making a bot in VB. And I'm wondering if anyone can confirm that if I have this code:

Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        If ComboBox2.Text = "" Then
            MsgBox("please select a player!")
        Else
            Timer1.Start()
            For Each c4 As Client In Client.GetClients
                If c4.GetPlayer.Name = ComboBox2.Text And Timer1.Enabled = True Then
                    c4.Console.Say(TextBox1.Text)
                ElseIf Timer1.Enabled = False Then
                    
                End If
            Next
        End If
    End Sub

then it will say what is in textbox1.text on the client that has a player with the name that is shown in combobox2.text, and that when timer1.enabled = false, it will stop saying it?
 
Back
Top