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

Guests: 26

123.126.x.x dilbertplus
180.76.x.x forum
180.76.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 user
46.229.x.x forum
46.229.x.x user
50.19.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x news
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x user
78.46.x.x download

Last Seen

Technodweeb Sat 20:53
Wussie Sat 16:28
Dodgeitorelse Sat 12:41
Brett Smith Sat 01:54
Adam Milne Sat 01:41

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