lexkymbeth Posted November 20, 2011 Author Share Posted November 20, 2011 [added Send to sever] "Sends msg to sever if its bad. Like if you want to mute them or what ever[added Let admins swear]if you have swear filter replace with this code:```Public Function CheckForSwears(Index As Long, Msg As String)' #########' ###SFS###' #########' Edits by LexDim SplitStr() As StringDim SwearWords As StringDim i As Integer' alow admins swearIf GetPlayerAccess(Index) > 3 ThenExit FunctionEnd If ' There are NO spaces between each swear. SwearWords = "test,test2" SplitStr = Split(SwearWords, ",") ' log and star bad words For i = 0 To UBound(SplitStr) If InStr(1, LCase(Msg$), SplitStr(i), 1) Then Call TextAdd(GetPlayerName(Index) & " said: " & Msg & " !!!!!") Msg = Replace$((Msg), (SplitStr(i)), LCase(String(Len(SplitStr(i)), "*")), , , 1) End If Next i End Function```if you don't have Swear filter[http://www.touchofdeathforums.com/smf/index.php/topic,74678.0.html](http://www.touchofdeathforums.com/smf/index.php/topic,74678.0.html)Any problums? Post :p Link to comment Share on other sites More sharing options...
greendixy Posted November 21, 2011 Share Posted November 21, 2011 I am getting an error it highlights TextAdd on this line```Call TextAdd(GetPlayerName(Index) & " said: " & Msg & " !!!!!", QBColor(BrightRed))```no errors with original way Link to comment Share on other sites More sharing options...
erkro1 Posted November 21, 2011 Share Posted November 21, 2011 @greendixy:> I am getting an error it highlights TextAdd on this line> > ```> Call TextAdd(GetPlayerName(Index) & " said: " & Msg & " !!!!!", QBColor(BrightRed))> ```> no errors with original wayTextAdd has nothing to do with this tutorial, copy/paste it from a clean EO into your source. Link to comment Share on other sites More sharing options...
lexkymbeth Posted November 21, 2011 Author Share Posted November 21, 2011 @greendixy:> I am getting an error it highlights TextAdd on this line> > ```> Call TextAdd(GetPlayerName(Index) & " said: " & Msg & " !!!!!", QBColor(BrightRed))> ```> no errors with original waythis should be in your sever. textadd post a msg to sever try..```Call TextAdd(GetPlayerName(Index) & " said: " & Msg & " !!!!!")```color code works on mying but nor others 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