forked from simmoo/Mafia-Game-Script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbodyguard.php
134 lines (128 loc) · 4.08 KB
/
bodyguard.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?php
include "globals.php";
if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); }
if(!$_GET['spend'])
{
print "
<div class='generalinfo_txt'>
<div><img src='images/info_left.jpg' alt='' /></div>
<div class='info_mid'><h2 style='padding-top:10px;'> Five Star Protection Agency</h2></div>
<div><img src='images/info_right.jpg' alt='' /></div> </div>
<div class='generalinfo_simple'><br> <br><br>
Welcome, here you can hire a bodyguard to protect you for a limited ammount of time.<br/>
Prices and payment options are listed below, different currencies have different prices.<br/>
<br />
<h3>Pay With Money</h3>
<a href='bodyguard.php?spend=5minsM'>Hire For 5 Minutes - \$5,000,000</a><br />
<a href='bodyguard.php?spend=10minsM'>Hire For 10 Minutes - \$10,000,000</a><br />
<a href='bodyguard.php?spend=30minsM'>Hire For 30 Minutes - \$30,000,000</a><br />
<a href='bodyguard.php?spend=1hourM'>Hire For 1 Hour - \$60,000,000</a><br />
<h3>Pay With Crystals</h3>
<a href='bodyguard.php?spend=5minsC'>Hire for 5 Minutes - 50 Crystals</a><br />
<a href='bodyguard.php?spend=10minsC'>Hire for 10 Minutes - 100 Crystals</a><br />
<a href='bodyguard.php?spend=30minsC'>Hire for 30 Minutes - 300 Crystals</a><br />
<a href='bodyguard.php?spend=1hourC'>Hire for 1 Hour - 600 Crystals</a><br /><br/><br/><br/><br/>
</div><div><img src='images/generalinfo_btm.jpg' alt='' /></div><br></div></div></div></div></div>
";
}
else
{
if($_GET['spend'] == '5minsM')
{
if($ir['money'] <5000000)
{
print "You don't have enough money to hire a bodyguard!";
}
else
{
$db->query("UPDATE users SET bguard=bguard+5,money=money-5000000 WHERE userid=$userid");
print "Congratulations, You payed a bodyguard \$5,000,000 to protect you for 5 minutes.";
}
}
else if($_GET['spend'] == '10minsM')
{
if($ir['money'] <10000000)
{
print "You don't have enough money to hire a bodyguard!";
}
else
{
$db->query("UPDATE users SET bguard=bguard+10,money=money-10000000 WHERE userid=$userid");
print "Congratulations, You payed a bodyguard \$10,000,000 to protect you for 10 minutes.";
}
}
else if($_GET['spend'] == '30minsM')
{
if($ir['money'] <30000000)
{
print "You don't have enough money to hire a bodyguard!";
}
else
{
$db->query("UPDATE users SET bguard=bguard+30,money=money-30000000 WHERE userid=$userid");
print "Congratulations, You payed a bodyguard \$30,000,000 to protect you for 30 minutes.";
}
}
else if($_GET['spend'] == '1hourM')
{
if($ir['money'] <60000000)
{
print "You don't have enough money to hire a bodyguard!";
}
else
{
$db->query("UPDATE users SET bguard=bguard+60,money=money-60000000 WHERE userid=$userid");
print "Congratulations, You payed a bodyguard \$60,000,000 to protect you for 1 hour.";
}
}
else if($_GET['spend'] == '5minsC')
{
if($ir['crystals'] <50)
{
print "You don't have enough silver to hire a bodyguard!";
}
else
{
$db->query("UPDATE users SET bguard=bguard+5,crystals=crystals-50 WHERE userid=$userid");
print "Congratulations, You payed a bodyguard 50 Crystals to protect you for 5 minutes.";
}
}
else if($_GET['spend'] == '10minsC')
{
if($ir['crystals'] <100)
{
print "You don't have enough crystals to hire a bodyguard!";
}
else
{
$db->query("UPDATE users SET bguard=bguard+10,crystals=crystals-100 WHERE userid=$userid");
print "Congratulations, You payed a bodyguard 100 Crystals to protect you for 10 minutes.";
}
}
else if($_GET['spend'] == '30minsC')
{
if($ir['crystals'] <300)
{
print "You don't have enough crystals to hire a bodyguard!";
}
else
{
$db->query("UPDATE users SET bguard=bguard+30,crystals=crystals-300 WHERE userid=$userid");
print "Congratulations, You payed a bodyguard 300 Crystals to protect you for 30 minutes.";
}
}
else if($_GET['spend'] == '1hourC')
{
if($ir['crystals'] <600)
{
print "You don't have enough crystals to hire a bodyguard!";
}
else
{
$db->query("UPDATE users SET bguard=bguard+60,crystals=crystals-600 WHERE userid=$userid");
print "Congratulations, You payed a bodyguard 600 Crystals to protect you for 1 hour.";
}
}
}
$h->endpage();
?>