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

Guests: 17

157.55.x.x forum
54.145.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x download
54.36.x.x forum
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.81.x.x forum
78.46.x.x dilbertplus
93.170.x.x forum

Last Seen

Wussie Sun 04:00
abc123456 Sat 03:29
miaryan Sat 00:35
CoZmicShReddeR Fri 09:11
ChristinaBlake Fri 08:29

Newest Members

Forums
Elite_Marines
Sat Mar 29 2008, 06:06PM
Posts: 59
Joined: Tue Mar 25 2008, 11:18PM
Registered Member #3872
My Community has a couple servers and about 90 admins on each 1 "we are ranked 20 'used to be 1 but we switch servers'" and they want me to add an icon next to the names that says if a player is an admin.

i tried

 foreach ($server['p'] as $player_key => $player) 
  { 
    if ($player['name'] == "=Iowa= Elite_Marines") 
    {
$admin = "This player is an admin";
} else {
$admin = "";
}

Which works to a point. if i change "=Iowa= Elite_Marines" to a variable it doesnt work.

do you have an idea?

i have the names in a database. it worked then but it would echo 5 rows for each person in my database so it would say

This player is not an admin - Test
This player is not an admin - Test
This player is not an admin - Test
This player IS an admin - Test
This player is not an admin - Test

test being the player. it would do that to all the players on the server.

Website
 

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