[Src]->Friends List.

Codes submitted by developers and people of outpost. Come here to get codes for your client sources.
Post Reply
ADDKiD
<3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

lol
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

k for those who want to add the extra feature of checking whether ur friend is online or not, maybe you could do it the way i thought of.

when u click a friend's name, send a msg to server, which calls for the /fi command. thats all. its like doing a /fi with mouse click, and you will know whether player is on or off. i havent gota round to test this, but pls feedback.

thx.
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

omar_omiez wrote: k for those who want to add the extra feature of checking whether ur friend is online or not, maybe you could do it the way i thought of.

when u click a friend's name, send a msg to server, which calls for the /fi command. thats all. its like doing a /fi with mouse click, and you will know whether player is on or off. i havent gota round to test this, but pls feedback.

thx.
Or the server could always keep you updated without having to request it.
<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.
omar_omiez
Loyal fan
Posts: 235
Joined: Mon Jul 12, 2004 9:36 am

Post by omar_omiez »

just like the way it does for hp bar updates?
- Tbone<br><a href="http://cyborg.namedecoder.com"><br><img src="http://cyborg.namedecoder.com/webimages ... ng"<br></a>
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

No. One way is to send a request every few xx (seconds, minutes, whatever) requesting a full update on your friends list, or you could do it the smart way of every time someone gets online/offline it's checked if anyone has them on their friends list and sends the update accordingly.
<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.
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

If you want to add online/offline and storing it in server then you should code your own version.... :blink:
<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)
xenx
Member
Posts: 169
Joined: Tue Oct 03, 2006 7:08 am

Post by xenx »

wouldnt you be better off requesting online/offline status of the players on your friends list when u open it,

that way the HG is only sending the data that is necessary when anyone actually uses it, rarther than all the time.
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

xenx wrote: wouldnt you be better off requesting online/offline status of the players on your friends list when u open it,

that way the HG is only sending the data that is necessary when anyone actually uses it, rarther than all the time.
It would have lag. The point is to have constantly updated list that way when your friends list is closed it can still tell you "so and so went offline" "so and so has come online" like mine does. >.> Having it updated only when you open it can pose a few problems. It takes a few seconds to update, you have to add more code to the hg to send/receive update status, and if your server has a lot of people on it they could all open their flist over and over to lag your server >.>
<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.
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

xenx wrote: wouldnt you be better off requesting online/offline status of the players on your friends list when u open it,

that way the HG is only sending the data that is necessary when anyone actually uses it, rarther than all the time.

[EDIT] Oh Jimmy you're a cunt. I wrote exactly what you said haha! Only 5min late... Fuck i hate having 5000 peices of spam to read :(
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
Post Reply