Need Abit Of Help.

All Helbreath Server Source Discussion here.
Post Reply
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

Well im trying too figure how I get the ShowNotices too display a certain bit of text too EVERYONE on the server.

Like say the command is executed and the text that it says after the command is displayed too EVERYONE in the server.

I seem not too be able too figure out how too do this.

So how would I change this bit of code around too display too the whole server.

Code: Select all

SendNotifyMsg(NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL);
EDIT: thats not the text that just tells it too say the wsprintf line before it.
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
wannabee
Loyal fan
Posts: 270
Joined: Sun Dec 21, 2003 12:42 am

Post by wannabee »

this is what i see GM msg as: pData is the message and the other one is the size (length)
m_pClientList->m_pXSock->iSendMsg(pData, dwMsgSize);
or maybe just m_pXSock->iSendMsg(pData, dwMsgSize);

i do know that if you run it though ChatMsgHandler with mode of 10, you'll get a admin msg

for reference, look down from:

Code: Select all

void CGame::ChatMsgHandler(int iClientH, char * pData, DWORD dwMsgSize)
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Human knowleag belongs to THE WORLD<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>So i highly dislike people who keep to their proud selfs... thats why i wanna share everything i got with you guys :D
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

wannabee wrote: this is what i see GM msg as: pData is the message and the other one is the size (length)
m_pClientList->m_pXSock->iSendMsg(pData, dwMsgSize);
or maybe just m_pXSock->iSendMsg(pData, dwMsgSize);

i do know that if you run it though ChatMsgHandler with mode of 10, you'll get a admin msg

for reference, look down from:

Code: Select all

void CGame::ChatMsgHandler(int iClientH, char * pData, DWORD dwMsgSize)
I'll try looking through there then and see what I can get.
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
Jaap
Loyal fan
Posts: 390
Joined: Thu Apr 22, 2004 8:21 am

Post by Jaap »

Slipknight wrote: Well im trying too figure how I get the ShowNotices too display a certain bit of text too EVERYONE on the server.

Like say the command is executed and the text that it says after the command is displayed too EVERYONE in the server.

I seem not too be able too figure out how too do this.

So how would I change this bit of code around too display too the whole server.

Code: Select all

SendNotifyMsg(NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL);
EDIT: thats not the text that just tells it too say the wsprintf line before it.
Omfg...

Code: Select all

register int i;
for (i = 1; i < DEF_MAXCLIENTS; i++) {
  if (m_pClientList[i] != NULL) {
    ShowNotice(NULL, i, NULL, bla bla);
  }
}
I feel like people on this board gets dumber everyday?
blackfury
noob
Posts: 29
Joined: Wed Oct 27, 2004 9:13 pm

Post by blackfury »

wouldn't that be local??
if he means everyone it should reach every hg...
as GM chat.
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

blackfury wrote: wouldn't that be local??
if he means everyone it should reach every hg...
as GM chat.
Send it to the GateServer then too as a global msg, just like GMS messages..
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Slipknight
Loyal fan
Posts: 423
Joined: Thu Apr 07, 2005 7:53 pm

Post by Slipknight »

Yeah but I dont know what #define message too put under that place that say "bla bla".
<img src='http://www.bleachportal.net/interactive ... irjjkt.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/Slipknot%20Fan.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/UT2004%20Player.jpg' border='0' alt='user posted image' /><br><img src='http://www.hazegfx.com/UserBanners/AC%20DC%20Fan.png' border='0' alt='user posted image' /><br>
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

register int i;
for (i = 1; i < DEF_MAXCLIENTS; i++) {
if (m_pClientList != NULL) {
ShowNotice(NULL, i, NULL, bla bla);
}
}

tahts exacly how i did it :) for my enemy killed by thing ;)

were if someone pks it post (Player was killed by Player)

:)

i didnt use 3 of them tho i did

Code: Select all

 for (i = 1; i < DEF_MAXCLIENTS; i++) {
  if (m_pClientList[i] != NULL) {
   ShowClientMsg(i,cPKMessage);
  }
 }
:).. the cPKMessage is for the wsprintf(cPKMessage,) line :)
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
Post Reply