Jump to content
MakeWebGames

Recommended Posts

Posted

Re: [mccode v2] Player of the week...

what i was thinking would be to use a function that generates the players name and colours it and adds images.

function getName ($id) {

$user = mysql_fetch_object("GET THEIR DETAILS");

if($user->donatordays == 0 AND $user->user_level == 1) { $type = "Player"; }

if($user->donatordays AND $user->user_level != 1) { $type = "Donator"; }

if($user->playerOfTheWeek == $user->$ir['userid']) { $type = "Featured"; }

if($user->user_level < 1) { $type = "Staff"; }

return '<span style="'.$type.'">'.$user->username.'</span>';

}

something along the lines of that ;)

Posted

Re: [mccode v2] Player of the week...

Yeah like yesterday i went back into table knowledge and learned what the "colspan" does.. lol Havn't had use of it up until now, i was a little embarrassed when i realized i didn't know how to do what i was doing and had to google table tags, lol

But hey, least i know everything about tables that i need to know, for now! :-)

Posted

Re: [mccode v2] Player of the week...

should change last login to 2 days, because 10 days is too far. Plus if they are over 10 days old they probbally quit playing the game, makes it more easier for the ACTIVE players to get player of the week.

EDIT: for the 2 days...

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

probbally not recommended for smaller games like 15 or less users online in past 24 hours... not good

Posted

Re: [mccode v2] Player of the week...

it's a player of the week, so common sense should kick in, 7 days, that way everyone who logged in that eek actually has a fair chance

Posted

Re: [mccode v2] Player of the week...

 

it's a player of the week, so common sense should kick in, 7 days, that way everyone who logged in that eek actually has a fair chance

where do you want the bullet?

  • 8 months later...
  • 1 month later...
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...