/who

All Helbreath Server Source Discussion here.
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

enyone knwo hwo to get it works
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kenshi
Loyal fan
Posts: 208
Joined: Thu Nov 20, 2003 8:27 am

Post by Kenshi »

i ondt nowk hawt ouy rae altkngi buota??
get rooted.
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

It seems Work but
it dont show u Travelers ... and if /who show u 53 players
20 ares
25 elv
and 8 traveler
tehn that code show u only 45 ppl

Code: Select all

  if (memcmp(cp, "/PlayersOn", 9) == 0) {
char cMsg[120];  
int i;
int are;
int elv;
int tra;
for (i = 1; i < DEF_MAXCLIENTS; i++){
if (m_pClientList[i] != NULL) {
char message[100];
are = 0;
elv = 0;
tra = 0;
ZeroMemory(cMsg, sizeof(cMsg));
if (memcmp(m_pClientList[iClientH]->m_cLocation, "are", 1) == 0 )are++;
else if (memcmp(m_pClientList[iClientH]->m_cLocation, "elv", 2) == 0 ) elv++;
else if (memcmp(m_pClientList[iClientH]->m_cLocation, "NONE", 3) == 0 ) tra++;
wsprintf(cMsg, " Ares: %d | Elv: %d |Trav: %d",are, elv,  tra);
ShowClientMsg(iClientH, cMsg);
}
}
return;
 }
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

this is whats i get when i use it it only reads me
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Treax2
Loyal fan
Posts: 281
Joined: Fri Mar 04, 2005 5:05 pm
Location: Estonia
Contact:

Post by Treax2 »

HMM Some parmeter Wrong :D

Code: Select all

  if (memcmp(cp, "/PlayersOn", 4) == 0) {
char cMsg[120];  
int i;
int are;
int elv;
int tra;
for (i = 1; i < DEF_NOTIFY_TOTALUSERS; i++){
if (m_pClientList[i] != NULL) {

are = 0;
elv = 0;
tra = 0;
ZeroMemory(cMsg, sizeof(cMsg));
if (memcmp(m_pClientList[iClientH]->m_cLocation, "are", 1) == 0 )are++;
else if (memcmp(m_pClientList[iClientH]->m_cLocation, "elv", 2) == 0 ) elv++;
else if (memcmp(m_pClientList[iClientH]->m_cLocation, "NONE", 3) == 0 ) tra++;
wsprintf(cMsg, " Ares: %d | Elv: %d |Trav: %d|",are, elv, tra);
ShowClientMsg(iClientH, cMsg);
}
}
return;
 }
No that have to Work :D
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

same as befor but sed it leik 500 times
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

io got it fixed but it only reads who on that hgserver

Code: Select all

if (memcmp(cp, "/PlayersOn", 4) == 0) {
char cMsg[120];
int i, iAres = 0, iElv = 0, itra = 0;
for (i = 0; i < DEF_MAXCLIENTS; i++){
 if (m_pClientList[i] != NULL) {
  if (memcmp(m_pClientList[i]->m_cLocation, "are", 1) == 0 ) iAres++;
  else if (memcmp(m_pClientList[i]->m_cLocation, "elv", 2) == 0 ) iElv++;
 else if (memcmp(m_pClientList[iClientH]->m_cLocation, "NONE", 3) == 0 ) itra++;
}
}
ZeroMemory(cMsg, sizeof(cMsg));
wsprintf(cMsg, "Ares: %d Elv: %d Trav: %d", iAres, iElv, itra);
for (i = 0; i < DEF_MAXCLIENTS; i++){
 if (m_pClientList[i] != NULL) {
  ShowClientMsg(iClientH, cMsg);
 }
}
return;
}
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

ya to bad non of thos sugestions would work, i was playing with it for awile, if u do the are++ i twill send the message 2 times if there are 2 players on like..

i say /who and it post message
are: 1 elv: 1
are: 1 elv: 1
have to find a diffrent way to do your ++

i just know it wont work like that ;)..

heh what ever it was i fixed :)

Code: Select all

  if (memcmp(cp, "/who", 4) == 0) {
if (m_pClientList[iClientH]->m_iAdminUserLevel >= m_iAdminLevelWho) {
SendNotifyMsg(NULL, iClientH, DEF_NOTIFY_TOTALUSERS, NULL, NULL, NULL, NULL);
char cMsg[120];
int i, iAres = 0, iElv = 0;
for (i = 0; i < DEF_MAXCLIENTS; i++){
	if (m_pClientList[i] != NULL) {
	if (memcmp(m_pClientList[i]->m_cLocation, "are", 1) == 0 ) iAres++;
	else if (memcmp(m_pClientList[i]->m_cLocation, "elv", 2) == 0 ) iElv++;
}
}
ZeroMemory(cMsg, sizeof(cMsg));
wsprintf(cMsg, "Ares: %d Elv: %d", iAres, iElv);
 if (m_pClientList[iClientH] != NULL) {
  ShowRepNotice(iClientH, cMsg);
 }
}
return;
}
works ;)

i dont think it sposable do it on all clients... becouse the HGserer needs to read client to see if hes ares or elv ;), soo the clients considered null if its on another hg ;).
<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' />
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Does CODES won't work correctly ... the Client only reads the (Person) that is in that Client only ...
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

itsd works it will only read ppl on thast hgserver
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Magic_ian
just visiting
Posts: 9
Joined: Sun May 14, 2006 10:02 am

Post by Magic_ian »

Good shows who aresden elvine and traveller

Code: Select all

if (memcmp(cp, "/who", 4) == 0) {
  	char cMsg[120];
  	int i, iAres = 0, iElv = 0, itra = 0;
  	for (i = 0; i < DEF_MAXCLIENTS; i++){
    if (m_pClientList[i] != NULL) {
    if (memcmp(m_pClientList[i]->m_cLocation, "are", 1) == 0 ) iAres++;
    else if (memcmp(m_pClientList[i]->m_cLocation, "elv", 2) == 0 ) iElv++;
    else if (memcmp(m_pClientList[iClientH]->m_cLocation, "NONE", 3) == 0 ) itra++;
    }
  	}
  	ZeroMemory(cMsg, sizeof(cMsg));
  	wsprintf(cMsg, "Aresi: %d | Elvini: %d | Travele: %d", iAres, iElv, itra);
  	
  	ShowClientMsg(iClientH, cMsg);
  	return;
  }
B)
sokol
Loyal fan
Posts: 228
Joined: Mon May 02, 2005 7:28 pm
Location: P(r)oland

Post by sokol »

Magic_ian wrote: Good shows who aresden elvine and traveller

Code: Select all

if (memcmp(cp, "/who", 4) == 0) {
  	char cMsg[120];
  	int i, iAres = 0, iElv = 0, itra = 0;
  	for (i = 0; i < DEF_MAXCLIENTS; i++){
    if (m_pClientList[i] != NULL) {
    if (memcmp(m_pClientList[i]->m_cLocation, "are", 1) == 0 ) iAres++;
    else if (memcmp(m_pClientList[i]->m_cLocation, "elv", 2) == 0 ) iElv++;
    else if (memcmp(m_pClientList[iClientH]->m_cLocation, "NONE", 3) == 0 ) itra++;
    }
  	}
  	ZeroMemory(cMsg, sizeof(cMsg));
  	wsprintf(cMsg, "Aresi: %d | Elvini: %d | Travele: %d", iAres, iElv, itra);
  	
  	ShowClientMsg(iClientH, cMsg);
  	return;
  }
B)

Code: Select all

if (memcmp(cp, "/who", 4) == 0) {
  char cMsg[120];
  int i, iAres = 0, iElv = 0, itra = 0;
  for (i = 0; i < DEF_MAXCLIENTS; i++){
   if (m_pClientList[i] != NULL) {
   if (memcmp(m_pClientList[i]->m_cLocation, "are", 1) == 0 ) iAres++;
   else if (memcmp(m_pClientList[i]->m_cLocation, "elv", 2) == 0 ) iElv++;
   else if (memcmp(m_pClientList[iClientH]->m_cLocation, "NONE", 3) == 0 ) itra++;
   }
  }
  ZeroMemory(cMsg, sizeof(cMsg));
  wsprintf(cMsg, "Aresden: %d | Elvine: %d | Traveler: %d", iAres, iElv, itra);//changed there
  
  ShowClientMsg(iClientH, cMsg);
  return;
 }
Post Reply