14-09-2008, 03:33 AM
Just working on converting a lot of the admin's text commands into buttons and what not myself 
Here's some things I've got in my source. Shoudn't be too hard for you to figure out what to do.
Search for "/ban" in modGameLogic (I think) to see what the text command does. Then compare it to the code below, which is for banning a player with a text box, and a button.
And now find the "/mapeditor" command, and compare it to this button's code:
Private Sub cmdEdit_Click() comes from my Mapreport Upgrage tutorial.

Here's some things I've got in my source. Shoudn't be too hard for you to figure out what to do.
Search for "/ban" in modGameLogic (I think) to see what the text command does. Then compare it to the code below, which is for banning a player with a text box, and a button.
Code:
Private Sub cmdBanPlayer_Click()
If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then
Call SendBan(Trim(txtBanPlayer.Text))
End If
End Sub
And now find the "/mapeditor" command, and compare it to this button's code:
Code:
Private Sub cmdEdit_Click()
Call SendRequestEditMap
End Sub
Private Sub cmdEdit_Click() comes from my Mapreport Upgrage tutorial.