Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 24

103.204.x.x forum
175.44.x.x forum
178.255.x.x lgsl
18.216.x.x news
191.101.x.x forum
216.244.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.4.x.x forum
46.4.x.x dilbertplus
54.234.x.x forum
78.46.x.x forum

Last Seen

mrstipfan Wed 19:48
Gagi2 Mon 16:30
EFiNST0RM Sun 15:39
85filip58 Sun 12:14
brlight Tue 04:18

Newest Members

Forums
Player list , admin color !
»Stefan
Sun Jul 18 2010, 04:16PM
Posts: 210
Joined: Fri Feb 05 2010, 03:56PM
Registered Member #5774
You make a page admin.txt where each row write an admin name if it appears in the list of players on the server he will be writing a different color.
ss:


We work for new version 2017

Coming SOON
https://www.youtube.com/watch?v=Mi1Po0_Rraw
mj_l
Sun Jul 18 2010, 10:14PM
Posts: 38
Joined: Sat Jun 19 2010, 06:21PM
Registered Member #6106
cool , how to make ?
Website
AGENTUL
Mon Jul 26 2010, 05:26AM

Posts: 33
Joined: Sun Apr 11 2010, 11:50AM
Registered Member #5960
mj_l wrote ...

cool , how to make ?


Stefan don't know how make this, he ask you if this is possible.
»Stefan
Tue Jul 27 2010, 01:31PM
Posts: 210
Joined: Fri Feb 05 2010, 03:56PM
Registered Member #5774
please help ?

We work for new version 2017

Coming SOON
https://www.youtube.com/watch?v=Mi1Po0_Rraw
Melroy
Mon Aug 02 2010, 11:22AM
Posts: 3
Joined: Sun Aug 01 2010, 05:44PM
Registered Member #6194
Ofsource it's possible
You may add the Globally Unique ID (also known as guid) from the user into that admin.txt, also I recommend you to use a database instead of a text file.

In PHP it's possible to read the file line by line into an array. After that you need to check every playername (or in mine case every guid) and compare it with the admin.txt (or database).
If you have a match you can color it using <font color="#xxxxxx"> or via imagestring().

I like the idea very much, so I will try to make it

I use B3 (Big Brother Bot) as server control software on my server. I gonna make my script via the b3 database, where already my admins are located, an example of that you can find at hte left side of my site:
www.joinmyserver.com

Kind regards,
Melroy van den Berg
Website
eslam
Mon Aug 02 2010, 11:58AM
Posts: 8
Joined: Thu Jul 08 2010, 02:52PM
Registered Member #6141
i think not any think possible only search for any way and i think u can do that
Website
»Stefan
Mon Aug 16 2010, 12:23PM
Posts: 210
Joined: Fri Feb 05 2010, 03:56PM
Registered Member #5774
Melroy
I can not understand me / please help me? I know and I could only wait

We work for new version 2017

Coming SOON
https://www.youtube.com/watch?v=Mi1Po0_Rraw
Rich
Mon Aug 16 2010, 01:48PM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

Example


$admins = array("fred", "joe", "paul");

foreach ($server['p'] as $key => $player)
{
  if (in_array($player['name'], $admins))
  {
    $player['name'] = "GREEN {$server['p'][$key]['name']} GREEN";
  }
}

Website
AGENTUL
Mon Aug 16 2010, 02:21PM

Posts: 33
Joined: Sun Apr 11 2010, 11:50AM
Registered Member #5960
what you say is work, thankyou, please say me how can i read the admins on a .txt file
for example i have the adresa http://site.com/admins.txt and on each row i have the admin name
Rich
Mon Aug 16 2010, 04:07PM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

http://php.net/function.file-get-contents

$admins = file_get_contents();
$admins = str_replace("\r", "", $admins);
$admins = explode("\n", $admins);
Website
OnLineCs
Mon Aug 16 2010, 06:41PM

Posts: 14
Joined: Sun Aug 15 2010, 08:35PM
Registered Member #6223
Stefan: unde se pun codurile alea ca mie nu imi merge ?

LGSL DEMO 5.8 http://demo.onlinecs.ro/
Blog OnLineCs
Website
Zipps
Tue Aug 17 2010, 03:55AM
Posts: 18
Joined: Mon May 10 2010, 01:03PM
Registered Member #6028
Rich wrote ...

Example


$admins = array("fred", "joe", "paul");

foreach ($server['p'] as $key => $player)
{
  if (in_array($player['name'], $admins))
  {
    $player['name'] = "GREEN {$server['p'][$key]['name']} GREEN";
  }
}




Hello
I have php nuke
so where to add this?
Website
»Stefan
Tue Aug 17 2010, 05:24AM
Posts: 210
Joined: Fri Feb 05 2010, 03:56PM
Registered Member #5774
in lgsl_details :-@

We work for new version 2017

Coming SOON
https://www.youtube.com/watch?v=Mi1Po0_Rraw
OnLineCs
Tue Aug 17 2010, 09:31AM

Posts: 14
Joined: Sun Aug 15 2010, 08:35PM
Registered Member #6223
date mah, dai si tu niste indicatii proaste, pacat ca esti roman dar nu ai habar de asa ceva nu ai nimik creat de manuta ta tot ai copiat

LGSL DEMO 5.8 http://demo.onlinecs.ro/
Blog OnLineCs
Website
»Stefan
Tue Aug 17 2010, 10:44AM
Posts: 210
Joined: Fri Feb 05 2010, 03:56PM
Registered Member #5774
stiu sa fac trebuie sa editezi lgsl_details acolo unde afiseaza playeri numele lor fragurile si timpul

But talk to him and steal so quiet that I make the pieces and tutoarile!
Rich see that ugly to me in Romanian vb Mr. Strange that he does

NOT HERE English is spoken in ROMANIAN
Sorry for my English

We work for new version 2017

Coming SOON
https://www.youtube.com/watch?v=Mi1Po0_Rraw
Zipps
Thu Aug 19 2010, 03:38AM
Posts: 18
Joined: Mon May 10 2010, 01:03PM
Registered Member #6028
it dint work
Website
AGENTUL
Thu Aug 19 2010, 04:06AM

Posts: 33
Joined: Sun Apr 11 2010, 11:50AM
Registered Member #5960
make something like this.

<?php
$admin 
file_get_contents("admini.txt"true);
$admin str_replace("\r"""$admin);
$admin explode("\n"$admin);

foreach (
$server['p'] as $player_key => $player)
{
$output .= "<tr>";
foreach (
$fields as $field)
{
if (
in_array($player['name'], $admin))
{
$player['name'] = "<font color='#00FF00' title='Admin'>{$player['name']}</font>"
}
else
{
$player['name'] = $player['name']; 
}
$output .= "<td>{$player[$field]}</td>";
}
$output .= "</tr>";
}
?>
Rich
Thu Aug 19 2010, 07:03AM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

Just to let you know, for xhtml the font tag has been replaced by CSS style.

"<span style='color:#00ff00' title='Admin'>{$player['name']}</span>";

Website
Xsfd (M.D.A)
Thu Aug 19 2010, 11:55AM

Posts: 90
Joined: Wed Aug 18 2010, 10:42AM
Registered Member #6225
AGENTUL wrote ...

make something like this.

<?php
$admin 
file_get_contents("admini.txt"true);
$admin str_replace("\r"""$admin);
$admin explode("\n"$admin);

foreach (
$server['p'] as $player_key => $player)
{
$output .= "<tr>";
foreach (
$fields as $field)
{
if (
in_array($player['name'], $admin))
{
$player['name'] = "<font color='#00FF00' title='Admin'>{$player['name']}</font>"
}
else
{
$player['name'] = $player['name']; 
}
$output .= "<td>{$player[$field]}</td>";
}
$output .= "</tr>";
}
?>



thanks!! It's work!

Website
Stormania
Sun Sep 26 2010, 07:48AM
Posts: 3
Joined: Sat Sep 25 2010, 06:26AM
Registered Member #6309
thx work xD


Website
Go to page       >>   

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org