14-09-2008, 04:02 AM
Sonire Wrote: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.
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.
Dude you kick so much ass! Thanks a lot. I had the right idea for the edit buttons, I just didn't put call beforehand, and I had to make it chance the width for the mapeditor. I also got the ban and kick button done, but not the mute yet, because I haven't programmed that in. Any suggestions on how to go about programming a mute command?