Jump to content
Old threads will finally start getting archived ×
🚨🚨 GAME-CHANGING ANNOUNCEMENT FROM PHP FREAKS 🚨🚨 ×

Recommended Posts

I have a script im trying to modify. this script shows users there stats, I have made a table at the top that should only be seen by people with 0 rmdays, meaning they are not a member. I need a code that when a user hits 0 rmdays this message will then show to them, but will not show to people with rmdays. Here is the full page script:

 

<?
include 'header.php';
?>
<table class="content">
<tr>
<td class="contenthead">Become A Respected Mobster</td>
</tr>
<tr>
<td class="contentcontent">
<table width='100%'>
<tr>


<td width='50%'><center>You're not a Respected Mobster yet! Why not?<br><br>

You're missing out!<br><br>

<a href="rmstore.php">Upgrade Now!<br>
Starting From $3.00!</a></td><br></center>
<td width='50%'>.: Bank Interest is DOUBLED!<br>
                        .: Respected MR Member Status!<br>         
                        .: Cash Bonus on Purchase!<br>
                        .: Points Bonus on Purchase<br>
                        .: Access to RM Only Features!</td>


</tr>


</table>
</td>
</tr>


<tr>
<td class="contenthead">General Information</td>
</tr>
<tr>
<td class="contentcontent">
<table width='100%'>
<tr>
<td width='15%'>Name:</td>
<td width='35%'><a href='profiles.php?id=<? echo $user_class->id; ?>'><? echo $user_class->formattedname; ?></a></td>
<td width='15%'>HP:</td>

<td width='35%'><?php echo $user_class->formattedhp; ?></td>
</tr>

<tr>
<td width='15%'>Level:</td>
<td width='35%'><? echo $user_class->level; ?></td>
<td width='15%'>Energy:</td>
<td width='35%'><?php echo $user_class->formattedenergy; ?></td>

</tr>

<tr>
<td width='15%'>Money:</td>
<td width='35%'>$<? echo $user_class->money; /*money_format('%(#10n', $user_class->money);*/ ?></td>
<td width='15%'>Awake:</td>
<td width='35%'><?php echo $user_class->formattedawake; ?></td>
</tr>

<tr>
<td width='15%'>Bank:</td>
<td width='35%'>$<? echo $user_class->bank; /*money_format('%(#10n', $user_class->bank);*/ ?></td>
<td width='15%'>Nerve:</td>
<td width='35%'><?php echo $user_class->formattednerve; ?></td>
</tr>

<tr>
<td width='15%'>EXP:</td>

<td width='35%'><?php echo $user_class->formattedexp; ?></td>
<td width='15%'>Work EXP:</td>
<td width='35%'><? echo $user_class->workexp; ?></td>
</tr>
<tr>
<td width='15%'>Prostitutes:</td>
<td width='35%'><?php echo $user_class->hookers; ?></td>
<td width='15%'>Marijuana:</td>
<td width='35%'><?php echo $user_class->marijuana; ?></td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="contenthead">Attributes</td>
</tr>
<tr>
<td class="contentcontent">
<table width='100%'>
<tr>
<td width='15%'>Strength:</td>
<td width='35%'><? echo $user_class->strength; ?></td>

<td width='15%'>Defense:</td>
<td width='35%'><? echo $user_class->defense; ?></td>
</tr>

<tr>
<td width='15%'>Speed:</td>
<td width='35%'><? echo $user_class->speed; ?></td>
<td width='15%'>Total:</td>

<td width='35%'><? echo $user_class->totalattrib; ?></td>
</tr>
</table>
</td>
</tr>

<tr><td class="contenthead">Battle Stats</td></tr>
<tr><td class="contentcontent">
<table width='100%'>
<tr>
<td width='15%'>Won:</td>
<td width='35%'><? echo $user_class->battlewon ?></td>
<td width='15%'>Lost:</td>
<td width='35%'><? echo $user_class->battlelost; ?></td>

</tr>

<tr>
<td width='15%'>Total:</td>
<td width='35%'><? echo $user_class->battletotal; ?></td>
<td width='15%'>Money Gain:</td>
<td width='35%'>$<? echo $user_class->battlemoney; ?></td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="contenthead">Crime Stats</td>
</tr>
<tr>
<td class="contentcontent">
<table width='100%'>

<tr>
<td width='15%'>Succeeded:</td>
<td width='35%'><? echo $user_class->crimesucceeded; ?></td>
<td width='15%'>Failed:</td>
<td width='35%'><? echo $user_class->crimefailed; ?></td>
</tr>

<tr>
<td width='15%'>Total:</td>

<td width='35%'><? echo $user_class->crimetotal; ?></td>
<td width='15%'>Money Gain:</td>
<td width='35%'>$<? echo $user_class->crimemoney; ?></td>
</tr>
</table></td>
</tr>
<?
include 'footer.php';
?>

 

 

Here is the table in there that I need to be only veiwable by people with 0 rmdays left:

 

<table class="content">
<tr>
<td class="contenthead">Become A Respected Mobster</td>
</tr>
<tr>
<td class="contentcontent">
<table width='100%'>
<tr>


<td width='50%'><center>You're not a Respected Mobster yet! Why not?<br><br>

You're missing out!<br><br>

<a href="rmstore.php">Upgrade Now!<br>
Starting From $3.00!</a></td><br></center>
<td width='50%'>.: Bank Interest is DOUBLED!<br>
                        .: Respected MR Member Status!<br>         
                        .: Cash Bonus on Purchase!<br>
                        .: Points Bonus on Purchase<br>
                        .: Access to RM Only Features!</td>


</tr>


</table>
</td>
</tr>

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.