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

Kicking player by the client


iHero
 Share

Recommended Posts

**Introduction**

If you try to kick a player by client, nothing will happen.

**Client~Side**

> frmMain

At the end of frmMain add:

```
Private Sub cmdAKick_Click()

' 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

End Sub
```

**Credits**

iRicardo
Link to comment
Share on other sites

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...