Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Register your account to receive email notifications when new services and mods are added.


Pages: 1 [2]

AuthorTopic: A much Better Crack the Safe with Pot!  (Read 788 times)

Danny696

  • Excellent Member
  • ***
  • Reputation Power: 276
  • Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.Danny696 has a powerful will.
  • Offline Offline
  • Posts: 457
    • View Profile
Re: A much Better Crack the Safe with Pot!
« Reply #15 on: February 22, 2010, 11:52:30 AM »
Re-code of crackasafe.php:

Code: [Select]
<?php
//****Modified by Immortal Thug
//****re-coded by Danny696
//***Please keep this notice.
@include_once(DIRNAME(__FILE__) .'/globals.php');
///////////////Setting
$cred "Crystals"//change this is you dont use crystals
///////////////Setting
if($ir['safetries']<=0) {
echo
'<span style="color:#800517; font-weight: bold;"><h3>You have no more tries, please come back tommorow.</h3></span>';
exit(
$h->endpage());
}
$r $db->fetch_row($db->query("SELECT * FROM `cracksafe` WHERE `sname`=1"));
$r2 $db->fetch_row($db->query("SELECT * FROM `cracksafe2` WHERE `sname`=1"));
$r3 $db->fetch_row($db->query("SELECT * FROM `cracksafe3` WHERE `sname`=1"));
echo
'<table width="50%" class="table">
<tr>
<td colspan="3">Attempts Remaining:</td><td colspan="2"><span style="size: 3; color: green; font-weight: bold;">'
.$ir['safetries'].'</span></td>
</tr>
<tr>
<th colspan="2">Crack the safe\'s</td><th colspan="2">Pot ammounts</th>
</tr>
<tr>
<th colspan="2">&nbsp;</th><th>Cash</th><th>'
.$cred.'</th>
</tr>
<tr>
<td>Safe 1 [Free]</td>
<td><a href="cracksafe.php">Crack</a></td>
<td><span style="color: green; font-weight: bold;">$'
.number_format($r['winnings']).'</span></td>
<td><span style="color: green; font-weight: bold;">'
.number_format($r['winnings2']).'</span></td>
</tr>
<tr>
<td>Safe 2 [$10,000]</td>
<td><a href="cracksafe2.php">Crack</a></td>
<td><span style="color: green; font-weight: bold;">$'
.number_format($r2['winnings']).'</span></td>
<td><span style="color: green; font-weight: bold;">'
.number_format($r2['winnings2']).'</span></td>
</tr>
<tr>
<td>Safe 3 [$100,000]</td>
<td><a href="cracksafe3.php">Crack</a></td>
<td><span style="color: green; font-weight: bold;">$'
.number_format($r3['winnings']).'</span></td>
<td><span style="color: green; font-weight: bold;">'
.number_format($r3['winnings2']).'</span></td>
</tr>
</table>'
;
$h->endpage();
?>
Logged
My Game: GraveYard; Madness || Projects; N/A -  Available for work. Please IM/PM me.

Maketextgames.com

  • Active Member
  • **
  • Reputation Power: 112
  • Maketextgames.com is working their way up.Maketextgames.com is working their way up.Maketextgames.com is working their way up.
  • Offline Offline
  • Posts: 204
    • MSN Messenger - immortalthug4ever@hotmail.com
    • View Profile
    • WWW
Re: A much Better Crack the Safe with Pot!
« Reply #16 on: February 22, 2010, 01:17:31 PM »
I've actually been meaning to update this mod to a bit better system, i've learned..quite a bit since i originall coded this :P
Pages: 1 [2]
« previous next »