HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 PvP Server Warning? ( Solved )

View previous topic View next topic Go down 
AuthorMessage
Five

avatar

Game username : Five
Server : Miskai (Co-Owner)
Female Posts : 29
Join date : 2014-07-21
Age : 22
Location : America

PostSubject: PvP Server Warning? ( Solved )   Sat Aug 13, 2016 8:36 pm

So, awhile ago we added the PvP system to Miskai and have been wondering how to remove the "Server Warning" message in the chat box since it's an annoyance. I checked back on the original PvP coding thread and never saw a fix to this issue. Apologies if I missed a support thread where this was already solved, but most of the ones I have seen went unanswered - unless I used the incorrect wording in the search function.

Just in case no one knows what I'm talking about, here's a screenshot:



Last edited by Five on Sun Aug 14, 2016 12:18 am; edited 1 time in total
Back to top Go down
http://miskai.boards.net/
Delete me.
Coder
Coder


Male Posts : 353
Join date : 2011-07-25
Age : 22

PostSubject: Re: PvP Server Warning? ( Solved )   Sat Aug 13, 2016 8:52 pm

GameServer.cpp

Code:
// user attacked another user
                        const string tCaption = "<<(SERVER WARNING)>> "+clientName[tSender-1]+" ATTACKED "+clientName[tUnitID-1]+" FOR "+intToString((int)tDamage);
                        RakNet::BitStream wBitStream;
                        wBitStream.Write(MessageID(ID_GODSPEAK));
                        StringCompressor::Instance()->EncodeString(tCaption.c_str(), 512, &wBitStream);
                        sendMyPlayers(server,&wBitStream, MEDIUM_PRIORITY, RELIABLE, 0, UNASSIGNED_SYSTEM_ADDRESS);

Comment out that section.
Back to top Go down
Five

avatar

Game username : Five
Server : Miskai (Co-Owner)
Female Posts : 29
Join date : 2014-07-21
Age : 22
Location : America

PostSubject: Re: PvP Server Warning? ( Solved )   Sun Aug 14, 2016 12:17 am

Ah, thank you so much! That did the trick. c:
Back to top Go down
http://miskai.boards.net/
Sponsored content




PostSubject: Re: PvP Server Warning? ( Solved )   

Back to top Go down
 
PvP Server Warning? ( Solved )
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support :: Solved Support Issues-
Jump to: