Re: [Free] [V1] Guess What Cup? (Casino Game)
Hey all, I have made a modified version of this so you get pics with it
<?php
require "globals.php";
$money=$ir['money'];
$win=$money+50;
$lose=$money-20;
$action=$_GET['action'];
if ($action=="")
{
print "You Approach 3 cups on a table, A wierd old guy says guess what cup has the ball under to win $50, it will cost $20.";
print "<center>
Pick a Cup:
</center>
[url='cups.php?action=left'][img=plasticcup1.jpg][/url]</a>
[url='cups.php?action=center'][img=plasticcup2.jpg][/url]</a>
[url='cups.php?action=right'][img=plasticcup3.jpg][/url]</a>";
exit;
}
if ($action=="left")
{
$pickleft=rand(1,3);
if ($pickleft=="2")
{
print "You picked left and found the ball under the cup!
You won $50!
<a href=cups.php>Back</a>";
$db->query("UPDATE users SET money=$win WHERE userid=$userid");
exit;
}
else
{
$db->query("UPDATE users SET money=$lose WHERE userid=$userid");
print "You picked left but didnt find the ball under the cup!
Better luck next time
<a href=cups.php>Back</a>";
exit;
}
}
if ($action="center")
{
$pickcenter=rand(1,3);
if ($pickcenter=="1")
{
print "You picked Center and found the ball under the cup!
You won $50!
<a href=cups.php>Back</a>";
$db->query("UPDATE users SET money=$win WHERE userid=$userid");
exit;
}
else
{
print "You picked Center but didnt find the ball under the cup!
Better luck next time
<a href=cups.php>Back</a>";
$db->query("UPDATE users SET money=$lose WHERE userid=$userid");
exit;
}
}
if ($action="right")
$pickright=rand(1,3);
{
if ($pickright=="3")
{
print "You picked Right and found the ball under the cup!
You won $50!
<a href=cups.php>Back</a>";
$db->query("UPDATE users SET money=$win WHERE userid=$userid");
exit;
}
else
{
print "You picked Right but didnt find the ball under the cup!
Better luck next time
<a href=cups.php>Back</a>";
$db->query("UPDATE users SET money=$lose WHERE userid=$userid");
exit;
}
}
$h->endpage();
?>
and here are the images:
name this one
plasticcup1.jpg
name this one
plasticcup2.jpg
name this one
plasticcup3.jpg