Client~Side
frmMain
Na picAdmin de dois cliques no cmdAKick e adicione:
- Código:
' If debug mode, handle error then exit out
If Options.Debug = 1 Then On Error GoTo errorhandler
If GetPlayerAccess(MyIndex) < ADMIN_MAPPER Then
Exit Sub
End If
If Len(Trim$(txtAName.text)) < 1 Then
Exit Sub
End If
SendKick Trim$(txtAName.text)
' Error handler
Exit Sub
errorhandler:
HandleError "cmdAKick_Click", "frmMain", Err.Number, Err.Description, Err.Source, Err.HelpContext
Err.Clear
Exit Sub
Créditos
Ricardo
Ricardo