[EO] Change Player Level (Server)

Hi all . This tut allows you to Change Player level from server :)

Server Side

Go to Menu Editor (CTRL+E)

Go down with enter.In the caption type Change Level and in the name put mnuLevel

Go to frmServer and add this at the bottom


Private Sub mnuLevel_Click()

Dim Level As Integer

Dim Player_Level As Integer

Level = InputBox("Level 1-100:", "Level")

Dim Name As String

Name = frmServer.lvwInfo.SelectedItem.SubItems(3)

If Not Name = "Not Playing" Then

Player_Level = GetPlayerLevel(FindPlayer(Name))

' If you want to change points please pm me ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)

Call SetPlayerLevel(FindPlayer(Name), Level)

Call SendPlayerData(FindPlayer(Name))

Call PlayerMsg(FindPlayer(Name), "Administrator changed your level from " & Player_Level & " to " & Level, BrightCyan)

End If

End Sub

So , i hope you like it

It works for me and my friends :rolleyes:

Simple and logical. Nice, I suppose.

P.s You liked your own topic. Not cool.

Why would you want to change the level of a player from the server?

Also using any type of boxes (Input or otherwise) will halt execution of server code. Meaning the sever will not do anything until the box has received input. So it will be a bad choice for severs.

EDIT: btw try not to like your own posts. It is childish.

Simple and logical. Nice, I suppose.

P.s You liked your own topic. Not cool.

Thanks , and i dislike it :P

Log in to reply