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

Kill Player


Matt
 Share

Recommended Posts

I realized that there never was a Kill Player command on the server, so i added one in. Despite how simple it was to make, i decided to make a tutorial on it :)

Open up your server. Open your frmServer. Press Ctrl+E.

In "Caption", write there "Kill".
In "Name", write there "mnuKill"

left of the Next button, there should be four arrow keys. Click on the one pointing to the right once.
Click "Next", then OK.

Right above the sub```
Sub mnuBanPlayer_click()
```
Place there this.

```
Sub mnuKill_Click()

    Dim Name As String
    Name = frmServer.lvwInfo.SelectedItem.SubItems(3)

    If Not Name = "Not Playing" Then
        Call OnDeath(FindPlayer(Name))
        Call PlayerMsg(FindPlayer(Name), "You were killed by the server host.", BrightRed)
    End If

End Sub
```
Save, compile, and enjoy :)
Link to comment
Share on other sites

@Joost:

> ```
> Dim index
>
> ```Dont dim things if you're not using them and especially dont leave them w/o a type. (integer or whatever)

Thank you for pointing that out. I dont know how that got there. O.O
Link to comment
Share on other sites

@Erwin:

> Actually there is already a kill sub server side called **KillPlayer**, but with this method you don't lose EXP. :P

I know, but when its this easy to abuse… The other reason i made it **Ondeath** was because i ripped out the xp lost on death, so it was rather pointless to go through that sub for me.
Link to comment
Share on other sites

@00GuthixLord:

> With A Little More Code You Can Put It Into The Admin Panel Then The Trolling Will Be More :)

Please Stop Talking Like This It Is Rather Ugly And It Is Very Hard To Read, Not To Mention, Improper.
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...