Mirage Source http://www.miragesource.net/forums/ |
|
Adding Minimum Message Length http://www.miragesource.net/forums/viewtopic.php?f=210&t=63 |
Page 1 of 1 |
Author: | Tutorial Bot [ Thu Jun 01, 2006 9:49 pm ] |
Post subject: | Adding Minimum Message Length |
Author: Renegade Difficulty: 1/5 This will increase the amount of characters per line someone must type for it to be sent. :: CLIENT SIDE :: Find: Code: ' Broadcast message If Mid(MyText, 1, 1) = "'" Then ChatText = Mid(MyText, 2, Len(MyText) - 1) If Len(Trim(ChatText)) > 0 Then Call BroadcastMsg(ChatText) End If MyText = "" Exit Sub End If Replace with: Code: ' Broadcast message If Mid(MyText, 1, 1) = "'" Then ChatText = Mid(MyText, 2, Len(MyText) - 1) If Len(Trim(ChatText)) > 10 Then Call BroadcastMsg(ChatText) End If MyText = "" Exit Sub End If Find: Code: ' Global Message If Mid(MyText, 1, 1) = """" Then ChatText = Mid(MyText, 2, Len(MyText) - 1) If Len(Trim(ChatText)) > 0 Then Call GlobalMsg(ChatText) End If MyText = "" Exit Sub End If Replace with: Code: ' Global Message Change the "> 10" to how many letters you want each message to be.If Mid(MyText, 1, 1) = """" Then ChatText = Mid(MyText, 2, Len(MyText) - 1) If Len(Trim(ChatText)) > 10 Then Call GlobalMsg(ChatText) End If MyText = "" Exit Sub End If That's all! |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |