Golf Posted May 4, 2013 Author Share Posted May 4, 2013 Boring ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)So this tut allows you to send msg to other players from server**Only Server Side**Open frmServer and go to Menu Editor(Ctrl + E)Now go down with enter!Add new textbox and name it textmsgPut this in the caption : "Send Msg"Put this in the name: "mnuMsg"Click ok and search for Private Sub mnuKick_Click()Above add```Sub mnuMsg_click()Dim Name As StringName = frmServer.lvwInfo.SelectedItem.SubItems(3)If Not Name = "Not Playing" Then Call SendPlayerData(FindPlayer(Name)) Call PlayerMsg(FindPlayer(Name), textmsg.Text, BrightGreen)End IfEnd Sub```To send msg just type something in textbox and right click on player then Send MsgThats all. ![:biker:](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/bike-038.gif) Link to comment Share on other sites More sharing options...
hisherwin Posted May 4, 2013 Share Posted May 4, 2013 it's kinda complicated because.. well you will type something on the textbox then change the tab to send a message?why not making a message options on player tab. Link to comment Share on other sites More sharing options...
Golf Posted May 4, 2013 Author Share Posted May 4, 2013 I will try to do that , but i like this ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
abhi2011 Posted May 4, 2013 Share Posted May 4, 2013 First off, why are you using a menu for this? A slash command would be more than sufficient. ( /msg )```Call SendPlayerData(FindPlayer(Name))```Second, why are you sending the player data? This just increases bandwidth usage.Third, if it is necessary to send the playerdata why are you calling FindPlayer twice? You could make a variable and set the player index to that specific variable, and use it in PlayerMsg and SendPlayerData. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now