24-12-2007, 09:06 PM
Code:
If LCase(Mid(MyText, 1, 5)) = "/kick" Then
If Len(MyText) > 6 Then
MyText = Mid(MyText, 7, Len(MyText) - 6)
Call SendKick(MyText)
End If
MyText = ""
Exit Sub
End If
I found this. It's what happens when you type /kick to kick a player.
I'm a little confused. My admin panel is set up with a text bar for a name and a command button for the kick action. So would the code be something like:
Code:
Sub Blah Blah On click
MyText = txtName
Call SendKick(MyText)
End Sub