[Src]->Admins online

Codes already submitted by people of the forums.
Post Reply
Acidx
Member
Posts: 198
Joined: Tue Mar 23, 2004 4:27 am

Post by Acidx »

this is unfinished WIP But So far this.
Displays all Online Admins on the HG at the time.
This doesn't work cross server, if you want it to then just add a GSM message for it you can base it off of the SummonGuild code for it here in this same forums, ill do it later dont really have the time atm.
unless someone edits this before i do.
p.s. dunno if there is a code out like this..
if there is then oh well haha
For example
someone types /admins
a Message pops up
Server: Active Admin: Acidx[GM]
Server: 1 Active Admins Online
Works like a charm...
Oh yea the person needs to have admin user level > 1
to be seen on the admin list


In Game.CPP Add

Code: Select all

/*===========Get Admins==By Acidx====/admins=======*/
void CGame::PlayerCommandCheckAdmins(int iClientH)
{//An Acidx Production - Last Updated:Aug.29.2006
 char  cNotifyMessage[256],cNotifyMessage2[256], cGMName[12];
 int i,x;
 WORD   * wp;
char   * cp;
char cBuff[256];
 cGMName[12];
 ZeroMemory(cNotifyMessage, sizeof(cNotifyMessage));
 ZeroMemory(cNotifyMessage2, sizeof(cNotifyMessage2));
 x = 0;
	for (i = 0; i < DEF_MAXCLIENTS; i++) 
  if (m_pClientList[i] != NULL) {

  if (m_pClientList[i]->m_iAdminUserLevel > 1) {
  wsprintf(cNotifyMessage, "Active Admin: %s", m_pClientList[i]->m_cCharName);
  ShowClientMsg(iClientH, cNotifyMessage);
  x++;
	}
}
  wsprintf(cNotifyMessage2, "%i Admins Are Online", x);
  ShowClientMsg(iClientH, cNotifyMessage2);
}

In Game.cpp in ChatMsgHandler(); add

Code: Select all

}
  /*====Add us Some /Commands here====*/
	if (memcmp(cp, "/admins", 7) == 0) {
  	PlayerCommandCheckAdmins(iClientH);
  	return;
  }


in Game.h add

Code: Select all

	/*====Add us some Declares here pal===*/
	void PlayerCommandCheckAdmins(int iClientH);


enjoy ;)
<b>-<span style='color:green'>ACiD-x </span><span style='color:red'> Owning PCs Since 1987</span><br><img src='http://img204.imageshack.us/img204/2245/hackertf5.gif' border='0' alt='user posted image' /><br><img src='http://img509.imageshack.us/img509/6697 ... 4sc4ed.png' border='0' alt='user posted image' /><br><span style='color:orange'>i am Pwn NetGAYLORDS !</span></b><br><span style='color:blue'><br>I Pwn HBUSA =)</span>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

good job
<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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Psycho
Member
Posts: 116
Joined: Sat Jan 24, 2004 2:56 pm

Post by Psycho »

thank you Acidx ;) a new coder in the forum, nice =)


YoKo
<img src='http://img145.imageshack.us/img145/3999/firma1an0.jpg' border='0' alt='user posted image' />
Maxis
Regular
Posts: 51
Joined: Tue Apr 04, 2006 4:47 pm

Post by Maxis »

thx is good nice job ;0
1+12
Member
Posts: 173
Joined: Sat Feb 04, 2006 5:05 pm

Post by 1+12 »

Psycho wrote: a new coder in the forum, nice =)
Acid is not new o.0

He was working with hbx and developing the Netgaylords ddos tool :)
Psycho
Member
Posts: 116
Joined: Sat Jan 24, 2004 2:56 pm

Post by Psycho »

1 wrote:
Psycho wrote: a new coder in the forum, nice =)
Acid is not new o.0

He was working with hbx and developing the Netgaylords ddos tool :)
Joined: 23-March 04

yah, sorry, thats my fault =(


YoKo
<img src='http://img145.imageshack.us/img145/3999/firma1an0.jpg' border='0' alt='user posted image' />
charlie
Outpost4lyfe
Posts: 3324
Joined: Sun Apr 06, 2003 12:24 am
Location: Mt GOD
Contact:

Post by charlie »

im aonly a nood

plz gib hax
Girlfriends are dedicated hookers.
xmukox
Member
Posts: 175
Joined: Sun Sep 11, 2005 9:53 am

Post by xmukox »

nice job!
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Nice, but pretty useless.
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Acidx
Member
Posts: 198
Joined: Tue Mar 23, 2004 4:27 am

Post by Acidx »

Tafka12 wrote: Nice, but pretty useless.
it can be used nicely if someone can finish it off and adds additions.
i havnt had time to mess with it but ill get to expanding on it..
and yes ive been coding in HB for a while now.. since around 2003 id say, but truthfully i havnt released much code to public because well i didnt know if people would want it or not..
Ill get some of my codes and post them tho i have alot like my original /getskills that was on HBArchaic/HBCelestial.
my event system and all that good stuff...
<b>-<span style='color:green'>ACiD-x </span><span style='color:red'> Owning PCs Since 1987</span><br><img src='http://img204.imageshack.us/img204/2245/hackertf5.gif' border='0' alt='user posted image' /><br><img src='http://img509.imageshack.us/img509/6697 ... 4sc4ed.png' border='0' alt='user posted image' /><br><span style='color:orange'>i am Pwn NetGAYLORDS !</span></b><br><span style='color:blue'><br>I Pwn HBUSA =)</span>
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

It should show it in one line.

And u made mistake

if (admin level > 1)

checks only 2, 3, 4, 5, 6... admin lvl 1 is also gm. replace > with >= and its ok
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
Acidx
Member
Posts: 198
Joined: Tue Mar 23, 2004 4:27 am

Post by Acidx »

Drajwer wrote: It should show it in one line.

And u made mistake

if (admin level > 1)

checks only 2, 3, 4, 5, 6... admin lvl 1 is also gm. replace > with >= and its ok
uhh Level 1 admin cant do shit so i didnt want it to be like that >.<
Oh and its supposed to be proccessed into two lines becuz im cool like that <3 Drajwer
<b>-<span style='color:green'>ACiD-x </span><span style='color:red'> Owning PCs Since 1987</span><br><img src='http://img204.imageshack.us/img204/2245/hackertf5.gif' border='0' alt='user posted image' /><br><img src='http://img509.imageshack.us/img509/6697 ... 4sc4ed.png' border='0' alt='user posted image' /><br><span style='color:orange'>i am Pwn NetGAYLORDS !</span></b><br><span style='color:blue'><br>I Pwn HBUSA =)</span>
Post Reply