-
Posts
207 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by grant
-
aye would give you my crimes code works with tokens but mines have points and other stuff added to it
-
and where you getting this idea from as i just posting in show off mutti game layouts if you want my code will sell you it for $3 comes with 5 lines of code :D
-
<?php include_once "header.php"; $number = rand(1,36); $n0 = abs(intval($_POST['n0'])); $n1 = abs(intval($_POST['n1'])); $n2 = abs(intval($_POST['n2'])); $n3 = abs(intval($_POST['n3'])); $n4= abs(intval($_POST['n4'])); $n5 = abs(intval($_POST['n5'])); $n6= abs(intval($_POST['n6'])); $n7 = abs(intval($_POST['n7'])); $n8 = abs(intval($_POST['n8'])); $n9 = abs(intval($_POST['n9'])); $n10 =abs(intval( $_POST['n10'])); $n11 = abs(intval($_POST['n11'])); $n12 = abs(intval($_POST['n12'])); $n13 = abs(intval($_POST['n13'])); $n14 = abs(intval($_POST['n14'])); $n15 = abs(intval($_POST['n15'])); $n16= abs(intval($_POST['n16'])); $n17= abs(intval($_POST['n17'])); $n18 = abs(intval($_POST['n18'])); $n19 = abs(intval($_POST['n19'])); $n20= abs(intval($_POST['n20'])); $n21= abs(intval($_POST['n21'])); $n22= abs(intval($_POST['n22'])); $n23 = abs(intval($_POST['n23'])); $n24 = abs(intval($_POST['n24'])); $n25 = abs(intval($_POST['n25'])); $n26 = abs(intval($_POST['n26'])); $n27 = abs(intval($_POST['n27'])); $n28 = abs(intval($_POST['n28'])); $n29= abs(intval($_POST['n29'])); $n30 = abs(intval($_POST['n30'])); $n31= abs(intval($_POST['n31'])); $n32 = abs(intval($_POST['n32'])); $n33 = abs(intval($_POST['n33'])); $n34 = abs(intval($_POST['n34'])); $n35 = abs(intval($_POST['n35'])); $n36 = abs(intval($_POST['n36'])); $e = abs(intval($_POST['e'])); $o = abs(intval($_POST['o'])); $teen = abs(intval($_POST['teen'])); $teen1 = abs(intval($_POST['teen1'])); $black = abs(intval($_POST['black'])); $red = abs(intval($_POST['red'])); $twelve = abs(intval($_POST['twelve'])); $dtv = abs(intval($_POST['dtv'])); $vtz = abs(intval($_POST['vtz'])); $ek = abs(intval($_POST['ek'])); $tk = abs(intval($_POST['tk'])); $dk = abs(intval($_POST['dk'])); if (!empty($_POST['go4'])){ $bet = $n0+$n1+$n2+$n3+$n4+$n5+$n6+$n7+$n8+$n9+$n10+$n11+$n12+$n13+$n14+$n15+$n16+$n17+$n18+$n19+$n20+$n21+$n22+$n23+$n24+$n25+$n26+$n27+$n28+$n29+$n30+$n31+$n32+$n33+$n34+$n35+$n36+$e+$o+$teen+$teen1+$black+$red+$twelve+$dtv+$vtz+$ek+$dk+$tk; if ($bet > $user_class->bank){ echo Message("You do not have that much money in the bank!"); include 'footer.php'; die(); } $nmoney = 0; if ($number == 1){ $nmoney = $nmoney + $n1 * 35; $on = 1; }elseif ($number == 2){$nmoney = $nmoney + $n2 * 35; $on = 2; }elseif ($number == 3){$nmoney = $nmoney + $n3 * 35; $on = 3; }elseif ($number == 4){$nmoney = $nmoney + $n4 * 35; $on = 4; }elseif ($number == 5){$nmoney = $nmoney + $n5 * 35; $on = 5; }elseif ($number == 6){$nmoney = $nmoney + $n6 * 35; $on = 6; }elseif ($number == 7){$nmoney = $nmoney + $n7 * 35; $on = 7; }elseif ($number == 8){$nmoney = $nmoney + $n8 * 35; $on = 8; }elseif ($number == 9){$nmoney = $nmoney + $n9 * 35; $on = 9; }elseif ($number == 10){$nmoney = $nmoney + $n10 * 35; $on = 10; }elseif ($number == 11){$nmoney = $nmoney + $n11 * 35; $on = 11; }elseif ($number == 12){$nmoney = $nmoney + $n12 * 35; $on = 12; }elseif ($number == 13){$nmoney = $nmoney + $n13 * 35; $on = 13; }elseif ($number == 14){$nmoney = $nmoney + $n14 * 35; $on = 14; }elseif ($number == 15){$nmoney = $nmoney + $n15 * 35; $on = 15; }elseif ($number == 16){$nmoney = $nmoney + $n16 * 35; $on = 16; }elseif ($number == 17){$nmoney = $nmoney + $n17 * 35; $on = 17; }elseif ($number == 18){$nmoney = $nmoney + $n18 * 35; $on = 18; }elseif ($number == 19){$nmoney = $nmoney + $n19 * 35; $on = 19; }elseif ($number == 20){$nmoney = $nmoney + $n20 * 35; $on = 20; }elseif ($number == 21){$nmoney = $nmoney + $n21 * 35; $on = 21; }elseif ($number == 22){$nmoney = $nmoney + $n22 * 35; $on = 22; }elseif ($number == 23){$nmoney = $nmoney + $n23 * 35; $on = 23; }elseif ($number == 24){$nmoney = $nmoney + $n24 * 35; $on = 24; }elseif ($number == 25){$nmoney = $nmoney + $n25 * 35; $on = 25; }elseif ($number == 26){$nmoney = $nmoney + $n26 * 35; $on = 26; }elseif ($number == 27){$nmoney = $nmoney + $n27 * 35; $on = 27; }elseif ($number == 28){$nmoney = $nmoney + $n28 * 35; $on = 28; }elseif ($number == 29){$nmoney = $nmoney + $n29 * 35; $on = 29; }elseif ($number == 30){$nmoney = $nmoney + $n30 * 35; $on = 30; }elseif ($number == 31){$nmoney = $nmoney + $n31 * 35; $on = 31; }elseif ($number == 32){$nmoney = $nmoney + $n32 * 35; $on = 32; }elseif ($number == 33){$nmoney = $nmoney + $n33 * 35; $on = 33; }elseif ($number == 34){$nmoney = $nmoney + $n34 * 35; $on = 34; }elseif ($number == 35){$nmoney = $nmoney + $n35 * 35; $on = 35; }elseif ($number == 36){$nmoney = $nmoney + $n36 * 35; $on = 36; }else { $nmoney = ""; } // odd or even if($number % 2 == 0) { $type = "even"; } else { $type = "odd"; } if($type == "odd") { $nmoney = $nmoney + $o * 2; } elseif($type == "even") { $nmoney = $nmoney + $e * 2; } //Low or high if ($nummer >= 19) { $nmoney = $nmoney + $high * 2; } elseif($nummer >= 0) { $nmoney = $nmoney + $low * 2; } $red = $_POST['red']; $black = $_POST['black']; $red22 = array ( "1" => "1", "2" => "3", "3" => "5", "4" => "7", "5" => "9", "6" => "12", "7" => "14", "8" => "16", "9" => "18", "10" => "19", "11" => "21", "12" => "23", "13" => "25", "14" => "27", "15" => "30", "16" => "32", "17" => "34", "18" => "36"); $ii = 1; while ($ii < 18){ if ($red22[$ii] == $number){ $colour1 = red; $nmoney = $nmoney + $red * 2; } /////////////////////////////////////////////need to fix coloums!!!! $ii++; } if ($colour1 == ""){ $black1 = array ( "1" => "2", "2" => "4", "3" => "6", "4" => "8", "5" => "10", "6" => "13", "7" => "15", "8" => "17", "9" => "20", "10" => "22", "11" => "24", "12" => "26", "13" => "28", "14" => "29", "15" => "31", "16" => "33", "17" => "35"); $iii = 0; while ($iii < 18){ if ($black1[$iii] == $number){ $colour1 = black; $nmoney = $nmoney + $black * 2; } $iii++; }} //fine $one218 = array ( "0" => "1", "1" => "2", "2" => "3", "3" => "4", "4" => "5", "5" => "6", "6" => "7", "7" => "8", "8" => "9", "9" => "10", "10" => "11", "11" => "12", "12" => "13", "13" => "14", "14" => "15", "15" => "16", "16" => "17", "17" => "18"); $part = 0; while ($part < 17){ if ($one218[$part] == $number){ $nmoney = $nmoney + $teen * 2; } $part++; } $teen236 = array ( "0" => "19", "1" => "20", "2" => "21", "3" => "22", "4" => "23", "5" => "24", "6" => "25", "7" => "26", "8" => "27", "9" => "28", "10" => "29", "11" => "30", "12" => "31", "13" => "32", "14" => "33", "15" => "34", "16" => "35", "17" => "36"); $part1 = 0; while ($part1 < 17){ if ($teen236[$part1] == $number){ $nmoney = $nmoney + $teen1 * 2; } $part1++; } $one212 = array ( "0" => "1", "1" => "2", "2" => "3", "3" => "4", "4" => "5", "5" => "6", "6" => "7", "7" => "8", "8" => "9", "9" => "10", "10" => "11", "11" => "12"); $part2 = 0; while ($part2 < 11){ if ($one212[$part2] == $number){ $nmoney = $nmoney + $twelve * 3; } $part2++; } $teen2244 = array ( "0" => "13", "1" => "14", "2" => "15", "3" => "16", "4" => "17", "5" => "18", "6" => "19", "7" => "20", "8" => "21", "9" => "22", "10" => "23", "11" => "24"); $part3 = 0; while ($part3 < 11){ if ($teen2244[$part3] == $number){ $nmoney = $nmoney + $dtv * 3; } $part3++; } $twen5 = array ( "0" => "25", "1" => "26", "2" => "27", "3" => "28", "4" => "29", "5" => "30", "6" => "31", "7" => "32", "8" => "33", "9" => "34", "10" => "35", "11" => "36"); $part4 = 0; while ($part4 < 11){ if ($twen5[$part4] == $number){ $nmoney = $nmoney + $vtz * 3; } $part4++; } $small = array ( "0" => "1", "1" => "5", "2" => "9", "3" => "13", "4" => "17", "5" => "21", "6" => "25", "7" => "29", "8" => "33" ); $part5 = 0; while ($part5 < 8){ if ($small[$part5] == $number){ $nmoney = $nmoney + $ek * 3; } $part5++; } $small1 = array ( "0" => "1", "1" => "5", "2" => "9", "3" => "13", "4" => "17", "5" => "21", "6" => "25", "7" => "29", "8" => "33" ); $part6 = 0; while ($part6 < 8){ if ($small1[$part6] == $number){ $nmoney = $nmoney + $tk * 3; } $part6++; } $small2 = array ( "0" => "1", "1" => "5", "2" => "9", "3" => "13", "4" => "17", "5" => "21", "6" => "25", "7" => "29", "8" => "33" ); $part7 = 0; while ($part7 < 8){ if ($small2[$part7] == $number){ $nmoney = $nmoney + $dk * 3; } $part7++; } $yougot = $nmoney - $bet; } ?> <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" CLASS="contenthead" > <tr> <td>roulettet</td> </tr> </table> <form method="post"> <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" CLASS="contentcontent"> <tr> <td WIDTH="0%" HEIGHT="48"> </td> <td WIDTH="0%"> </td> <td WIDTH="0%"> </td> <td WIDTH="0%"> </td> <td WIDTH="31%"> </td> <td COLSPAN="3" ALIGN="center">0 <input name=n0 type=text class="areatest" ID="n0" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="37"> </td> <td> </td> <td> </td> <td> </td> <td>max bets 5,000,000,000 min 1000</td> <td WIDTH="23%" ALIGN="center">1 <input name=n1 type=text class="areatest" ID="n1" size=8 maxlength="10"></td> <td WIDTH="23%" ALIGN="center">2 <input name=n2 type=text class="areatest" ID="n2" size=8 maxlength="10"></td> <td WIDTH="23%" ALIGN="center">3 <input name=n3 type=text class="areatest" ID="n3" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="30"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">bank account <? echo prettynum($user_class->bank) ?></td> <td ALIGN="center">4 <input name=n4 type=text class="areatest" ID="n4" size=8 maxlength="10"></td> <td ALIGN="center">5 <input name=n5 type=text class="areatest" ID="n5" size=8 maxlength="10"></td> <td ALIGN="center">6 <input name=n6 type=text class="areatest" ID="n6" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="31"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center"><?php if (!empty($_POST['go4'])){ if ($yougot <= 0){ echo " <h3>Wheel Number ".$number."<br></h3> <font color='#ff000'>you lost $".prettynum($bet)."</font>"; $result = mysql_query("UPDATE `users` SET bank=bank-$bet WHERE `id`='".$user_class->id."'"); }elseif($yougot > 0){ echo"<h3>Wheel Number ".$number."<br></h3> <font color='green'>Congratulations you won $".prettynum($nmoney)."</font>"; $result = mysql_query("UPDATE `users` SET bank=bank+$nmoney WHERE `id`='".$user_class->id."'"); }} ?> </td> <td ALIGN="center">7 <input name=n7 type=text class="areatest" ID="n7" size=8 maxlength="10"></td> <td ALIGN="center">8 <input name=n8 type=text class="areatest" ID="n8" size=8 maxlength="10"></td> <td ALIGN="center">9 <input name=n9 type=text class="areatest" ID="n9" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="35"> </td> <td> </td> <td> </td> <td> </td> <td ROWSPAN="12"><img SRC="roulettetable.gif" WIDTH="250" HEIGHT="329"></td> <td ALIGN="center">10 <input name=n10 type=text class="areatest" ID="n10" size=8 maxlength="10"></td> <td ALIGN="center">11 <input name=n11 type=text class="areatest" ID="n11" size=8 maxlength="10"></td> <td ALIGN="center">12 <input name=n12 type=text class="areatest" ID="n12" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="34"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">13 <input name=n13 type=text class="areatest" ID="n13" size=8 maxlength="10"></td> <td ALIGN="center">14 <input name=n14 type=text class="areatest" ID="n14" size=8 maxlength="10"></td> <td ALIGN="center">15 <input name=n15 type=text class="areatest" ID="n15" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="34"> </td> <td COLSPAN="3"> </td> <td ALIGN="center">16 <input name=n16 type=text class="areatest" ID="n16" size=8 maxlength="10"></td> <td ALIGN="center">17 <input name=n17 type=text class="areatest" ID="n17" size=8 maxlength="10"></td> <td ALIGN="center">18 <input name=n18 type=text class="areatest" ID="n18" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="35"> </td> <td COLSPAN="3"> </td> <td ALIGN="center">19 <input name=n19 type=text class="areatest" ID="n19" size=8 maxlength="10"></td> <td ALIGN="center">20 <input name=n20 type=text class="areatest" ID="n20" size=8 maxlength="10"></td> <td ALIGN="center">21 <input name=n21 type=text class="areatest" ID="n21" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="38"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">22 <input name=n22 type=text class="areatest" ID="n22" size=8 maxlength="10"></td> <td ALIGN="center">23 <input name=n23 type=text class="areatest" ID="n23" size=8 maxlength="10"></td> <td ALIGN="center">24 <input name=n24 type=text class="areatest" ID="n24" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="33"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">25 <input name=n25 type=text class="areatest" ID="n25" size=8 maxlength="10"></td> <td ALIGN="center">26 <input name=n26 type=text class="areatest" ID="n26" size=8 maxlength="10"></td> <td ALIGN="center">27 <input name=n27 type=text class="areatest" ID="n27" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="37"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">28 <input name=n28 type=text class="areatest" ID="n28" size=8 maxlength="10"></td> <td ALIGN="center">29 <input name=n29 type=text class="areatest" ID="n29" size=8 maxlength="10"></td> <td ALIGN="center">30 <input name=n30 type=text class="areatest" ID="n30" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="35"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">31 <input name=n31 type=text class="areatest" ID="n31" size=8 maxlength="10"></td> <td ALIGN="center">32 <input name=n32 type=text class="areatest" ID="n32" size=8 maxlength="10"></td> <td ALIGN="center">33 <input name=n33 type=text class="areatest" ID="n33" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="32"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">34 <input name=n34 type=text class="areatest" ID="n34" size=8 maxlength="10"></td> <td ALIGN="center">35 <input name=n35 type=text class="areatest" ID="n35" size=8 maxlength="10"></td> <td ALIGN="center">36 <input name=n36 type=text class="areatest" ID="n36" size=8 maxlength="10"></td> </tr> <tr> <td HEIGHT="40"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">odd <input NAME=o TYPE=text CLASS="areatest" SIZE=8 MAXLENGTH="10"></td> <td ALIGN="center">19- 36 <input name=teen type=text class="areatest" ID="teen" size=8 maxlength="10"></td> <td ALIGN="center">Even <input NAME=e TYPE=text CLASS="areatest" SIZE=8 MAXLENGTH="10"></td> </tr> <tr> <td HEIGHT="53"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">red <input NAME=red TYPE=text CLASS="areatest" SIZE=8 MAXLENGTH="10"></td> <td ALIGN="center">1 - 18 <input NAME=teen TYPE=text CLASS="areatest" ID="teen" SIZE=8 MAXLENGTH="10"></td> <td ALIGN="center">black <input NAME=black TYPE=text CLASS="areatest" SIZE=8 MAXLENGTH="10"></td> </tr> <tr> <td HEIGHT="58"> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">13 -24 <input NAME=dtv TYPE=text CLASS="areatest" SIZE=8 MAXLENGTH="10"></td> <td ALIGN="center">1 -12 <input NAME=twelve TYPE=text CLASS="areatest" ID="twelve" SIZE=8 MAXLENGTH="10"></td> <td ALIGN="center">25-36 <input NAME=vtz TYPE=text CLASS="areatest" SIZE=8 MAXLENGTH="10"></td> </tr> <tr> <td HEIGHT="65"> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center">1st column<br> <input NAME=ek TYPE=text CLASS="areatest" SIZE=8 MAXLENGTH="10"></td> <td ALIGN="center">2nd column<br> <input NAME=tk TYPE=text CLASS="areatest" SIZE=8 MAXLENGTH="10"></td> <td ALIGN="center">3rd column<br> <input NAME=dk TYPE=text CLASS="areatest" SIZE=8 MAXLENGTH="10"></td> </tr> <tr> <td HEIGHT="37"> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td ALIGN="center"><input name='go4' type=submit class="buttong" value=Bet> <input type=reset class="buttong" value=Reset></td> <td> </td> </tr> </table></form> <table WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" CLASS="contentcontent1"> <tr> <td> </td> </tr> </table> <br><br> <?php include 'footer.php'; ?> http://prntscr.com/8kanj http://prntscr.com/8kao7
-
my custom game color changer blue http://prntscr.com/8jito http://prntscr.com/8jix3 ------------------------------- orange http://prntscr.com/8jiux http://prntscr.com/8jiv9 ---------------------- pink http://prntscr.com/8jivw http://prntscr.com/8jiwk --------------------- yellow http://prntscr.com/8jiy0 http://prntscr.com/8jiyh what ya think then
-
Any body know the function code for classes for clean
grant replied to thebobby's topic in GRPG Support
function clean($str = '', $html = false) { if (empty($str)) return; if (is_array($str)) { foreach($str as $key => $value) $str[$key] = clean($value, $html); } else { if (get_magic_quotes_gpc()) $str = stripslashes($str); if (is_array($html)) $str = strip_tags($str, implode('', $html)); elseif (preg_match('|<([a-z]+)>|i', $html)) $str = strip_tags($str, $html); elseif ($html !== true) $str = strip_tags($str); $str = trim($str); }return $str; } -
never says i was an expert say it would be easy for him to understand better
-
lol he cant use mysql_query yet so going to take him some time to use mysqli .i have learned php by myself and i still have some issues back and forwords stabs just google tuts on how to code php and you will soon pick it up
-
dont see you helping so dont comment on my post inless your going to help him
-
was just example to show him how you do it lol
-
do you have an INSERT INTO VALUES if not then you wont be able to register as it not posting any input to the db $username = strip_tags($_POST['username']); $password = md5(strip_tags($_POST['password'])); $repeatpassword = md5(strip_tags($_POST['repeatpassword'])); echo $username; $sql= "INSERT INTO `user db` ( username, password)"."VALUES ('$username', '$password'); echo 'Your account has been created successfully! <meta http-equiv="refresh" content="0; url=home.php">'; }
-
cant mind who was asking for this but here it is just over write gangarmory.php <?php include_once(DIRNAME(__FILE__) . '/header.php'); if ($user_class->gang != 0) { $gang_class = New Gang($user_class->gang); if ($_POST['buy']){ if($_POST['items'] == ""){ echo Message("You don't have any of those"); include 'footer.php'; die(); } $item = abs(intval($_POST['items'])); $result = mysql_query("SELECT * FROM `gangarmory` WHERE `id`='".$item."'"); $worked = mysql_fetch_array($result); $result2 = mysql_query("SELECT * FROM `items` WHERE `id`='".$worked['itemid']."'"); $worked2 = mysql_fetch_array($result2); $user_item = new User($worked['userid']); if ($gang_class->leader != $user_class->id){ echo Message("You are not the leader of this gang."); } else { Gang_tItem($worked2['id'], $user_class->gang);// remove the item form the gang Give_Item($worked2['id'], $user_class->id);//give them the item out of the armory }} if ($_POST['loan']){ $item = abs(intval($_POST['items1'])); $checkgang = mysql_query("SELECT * FROM gangarmory WHERE `itemid`='".$item."'"); $gang_exist = mysql_num_rows($checkgang); if($gang_exist == 0){ echo Message('you dont have any of those'); }else{ if($gang_class->leader != $user_class->id){ echo Message("You are not the leader of this gang."); include 'footer.php'; die(); } $user = abs(intval($_POST['user'])); Gang_tItem($item, $user_class->gang);// remove the item form the gang Gang_loan($item, $user ,$user_class->gang);//give them the item out of the armory Send_Event($user, "you have been giving a weapon from the gang vault "); }} if ($_POST['takeloan']){ $item = abs(intval($_POST['user2'])); $weop = abs(intval($_POST['wep'])); $checkgang = mysql_query("SELECT * FROM gangarmory WHERE `itemid`='".$item."'"); $gang_exist = mysql_num_rows($checkgang); if($gang_exist == 0){ echo Message('you dont have any of those'); }else{ if($gang_class->leader != $user_class->id){ echo Message("You are not the leader of this gang."); include 'footer.php'; die(); } Send_Event($item, "has removed the item that they gave you "); Gang_Item($weop, $user_class->gang);// give the item to the gang Take_loan($weop, $item ,$user_class->gang);//take the item from the user }} ?> <table width='100%' border='0' class='contenthead'> <tr> <td>item in the gang armory</td> </tr> </table> <table width='100%' border='0' class='contentcontent'><tr> <td height='49' align=center> <form method='post'> <select name='items' class='areatestsmall'> <?php $result = mysql_query("SELECT * from `gangarmory` WHERE `gangid` = '".$gang_class->id."'"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $user_item = new User($line['userid']); $result2 = mysql_query("SELECT * FROM `items` WHERE `id`='".$line['itemid']."'"); $worked = mysql_fetch_array($result2); echo " <option value=".$line['id'].">".$worked['itemname']." [x".$line['quantity']."]</option> "; }?> </select> <br /><input name="buy" type="submit" class="buttong" value="take item"> </form> </td> </tr> </table> <table width="100%" border="0" class="contenthead"> <tr> <td>Add items to gang armory</td> </tr> </table> <table width="100%" height="67" border="0" class="contentcontent"> <tr> <td height="63" align="center"> <form action="addtoarmory.php" method="post"> <select name='item' class='areatestsmall'> <?php $resultghggh = mysql_query("SELECT * FROM `inventory` WHERE `userid` = '".$user_class->id."' ORDER BY `userid` DESC"); while($line = mysql_fetch_array($resultghggh, MYSQL_ASSOC)) { $result233 = mysql_query("SELECT * FROM `items` WHERE `id`='".$line['itemid']."'"); $worked2 = mysql_fetch_array($result233); echo" <option value=".$worked2['id'] .">".$worked2['itemname']." [x".$line['quantity']."]</option> "; } ?> </select> <br /><input name="tradeitem" type="submit" class="buttong" id="itemsale" value="add item"> </form> <? echo "<td><tr>"; } else { echo Message("You aren't in a gang."); }?></td> </tr> </table> <table width="100%" border="0" class="contenthead"> <tr> <td height="24">gang loan</td> </tr> </table> <table width="100%" border="0" class="contentcontent"> <tr> <td height="53" colspan="2" align="center"><p>how it works is if you loan a weapon to any user in your gang <br /> you can remove the item when you feel like it only bosses and under bosses can do this </p></td> </tr> <tr><form method="post"> <td width="50%" align="center">Gang Members <br /><select name='user' class='areatestsmall'> <?php $result = mysql_query("SELECT * from `users` WHERE `gang` = '".$user_class->gang."'"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $gang = new User($line['id']); echo" <option value=".$gang->id .">".$gang->username."</option> "; } ?> </select> <br /> </td> <td width="50%" height="124" align="center"> item<br /> <select name='items1' class='areatestsmall'> <?php $result = mysql_query("SELECT * from `gangarmory` WHERE `gangid` = '".$gang_class->id."'"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $result233 = mysql_query("SELECT * FROM `items` WHERE `id`='".$line['itemid']."'"); $worked2 = mysql_fetch_array($result233); echo" <option value=".$worked2['id'] .">".$worked2['itemname']." [x".$line['quantity']."]</option> "; } ?> </select> <br /> </td> </tr> <tr> <td width="50%" height="46" colspan="2" align="center"><input name="loan" type="submit" class="buttong" value="loan"></form></td> </tr> </table> <table width="100%" border="0" class="contenthead"> <tr> <td>item that has been loaned out</td> </tr> </table> <table width="100%" border="0" class="contentcontent"> <tr> <td height="97" align="center">remove items from warriors <?php $resultghggh = mysql_query("SELECT * FROM `inventory3` WHERE `gangid` = '".$user_class->gang."' ORDER BY `userid` DESC"); while($line = mysql_fetch_array($resultghggh, MYSQL_ASSOC)) { $gang = new User($line['userid']); $result2 = mysql_query("SELECT * FROM `items` WHERE `id`='".$line['itemid']."'"); $worked = mysql_fetch_array($result2); echo" <form method='post'> <input name='wep' type='hidden' value='".$line['itemid']."'>"; } ?> <select name='user2' class='areatestsmall'> <?php $resultghggh = mysql_query("SELECT * FROM `inventory3` WHERE `gangid` = '".$user_class->gang."' ORDER BY `userid` DESC"); while($line = mysql_fetch_array($resultghggh, MYSQL_ASSOC)) { $gang = new User($line['userid']); $result2 = mysql_query("SELECT * FROM `items` WHERE `id`='".$line['itemid']."'"); $worked = mysql_fetch_array($result2); echo" <option value='".$gang->id."'>".$gang->username." ".$worked['itemname']." [x".$line['quantity']."]</option> "; } ?> </select><br /> <input name="takeloan" type="submit" class="buttong" value="remove from warrior"></form> </td> </tr> </table> <?php include_once(DIRNAME(__FILE__) . '/footer.php'); ?> add to classes //////// gang items function Gang_Item($itemid, $userid, $quantity="1"){ $resultaq = mysql_query("SELECT * FROM `gangarmory` WHERE `gangid`='$userid' AND `itemid`='$itemid'"); $worked = mysql_fetch_array($resultaq); $itemexist = mysql_num_rows($resultaq); if($itemexist == 0){ $resultal = mysql_query("INSERT INTO `gangarmory` (`itemid`, `gangid`, `quantity`)"."VALUES ('$itemid', '$userid', '$quantity')"); } else { $quantity = $quantity + $worked['quantity']; $resultap = mysql_query("UPDATE `gangarmory` SET `quantity` = '".$quantity."' WHERE `gangid`='$userid' AND `itemid`='$itemid'"); }} function Gang_tItem($itemid, $userid, $quantity="1"){ $resultbc = mysql_query("SELECT * FROM `gangarmory` WHERE `gangid`='$userid' AND `itemid`='$itemid'"); $worked = mysql_fetch_array($resultbc); $itemexist = mysql_num_rows($resultbc); if($itemexist != 0){ $quantity = $worked['quantity'] - $quantity; if($quantity > 0){ $resultbd = mysql_query("UPDATE `gangarmory` SET `quantity` = '".$quantity."' WHERE `gangid`='$userid' AND `itemid`='$itemid'"); } else { $resultbg = mysql_query("DELETE FROM `gangarmory` WHERE `gangid`='$userid' AND `itemid`='$itemid'"); }}} //// gang loan function Gang_loan($itemid, $userid , $gangid, $quantity="1"){ $resultaq = mysql_query("SELECT * FROM `inventory3` WHERE `userid`='$userid' AND `itemid`='$itemid' AND `gangid`='$gangid'"); $worked = mysql_fetch_array($resultaq); $itemexist = mysql_num_rows($resultaq); if($itemexist == 0){ $resultal = mysql_query("INSERT INTO `inventory3` (`itemid`, `userid`, `quantity`,`gangid`)"."VALUES ('$itemid', '$userid', '$quantity','$gangid')"); } else { $quantity = $quantity + $worked['quantity']; $resultap = mysql_query("UPDATE `inventory3` SET `quantity` = '".$quantity."' WHERE `userid`='$userid' AND `itemid`='$itemid' AND `gangid`='$gangid'"); }} function Take_loan($itemid, $userid,$gangid, $quantity="1"){ $resultbc = mysql_query("SELECT * FROM `inventory3` WHERE `userid`='$userid' AND `itemid`='$itemid' AND `gangid`='$gangid'"); $worked = mysql_fetch_array($resultbc); $itemexist = mysql_num_rows($resultbc); if($itemexist != 0){ $quantity = $worked['quantity'] - $quantity; if($quantity > 0){ $resultbd = mysql_query("UPDATE `inventory3` SET `quantity` = '".$quantity."' WHERE `userid`='$userid' AND `itemid`='$itemid'AND `gangid`='$gangid'"); } else { $resultbg = mysql_query("DELETE FROM `inventory3` WHERE `userid`='$userid' AND `itemid`='$itemid' AND `gangid`='$gangid'"); }}} sql CREATE TABLE IF NOT EXISTS `inventory3` ( `userid` int(20) NOT NULL, `itemid` int(20) NOT NULL, `quantity` int(10) NOT NULL, `gangid` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci; inventory.php add this any where in ////// gang loan $resultghggh = mysql_query("SELECT * FROM `inventory3` WHERE `userid` = '".$user_class->id."' ORDER BY `userid` DESC"); while($line = mysql_fetch_array($resultghggh, MYSQL_ASSOC)) { $result233 = mysql_query("SELECT * FROM `items` WHERE `id`='".$line['itemid']."'"); $worked2 = mysql_fetch_array($result233); if ($worked2['offense'] > 0){ }if ($worked2['offense'] > 0){ $gangloanw .= "<td width='0%' align='center'> <img src='". $worked2['image']."' width='75' height='75' style='border: 0px solid #333333' /><br /> ". item_popup($worked2['itemname'], $worked2['id']) ." [x".$line['quantity']."]<br /> $". $worked2['cost'] ."<br /> <a href='equip.php?eq=weapon&id=".$worked2['id']."'>[Equip]</a></td>"; $howmanyitems1 = $howmanyitems1 + 1; if ($howmanyitems1 == 7){ $gangloanw.= "</tr><tr>"; $howmanyitems1 = 0; }} if ($worked2['defense'] > 0){ $gangloana .= "<td width='0%' align='center'> <img src='". $worked2['image']."' width='75' height='75' style='border: 0px solid #333333' /><br /> ". item_popup($worked2['itemname'], $worked2['id']) ." [x".$line['quantity']."]<br /> $". $worked2['cost'] ."<br /> <a href='equip.php?eq=armor&id=".$worked2['id']."'>[Equip]</a></td>"; $howmanyitems3 = $howmanyitems3 + 1; if ($howmanyitems3 == 7){ $gangloana.= "</tr><tr>"; $howmanyitems3 = 0; }}} ADD under in inventory.php <?php if ($gangloanw != ""){ ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="contenthead"> <tr> <td>gang loan weapons</td> </tr> </table> <table width='100%' border="0" cellpadding="0" cellspacing="0" class="contentcontent"><tr> <?php echo $gangloanw; ?></tr> </table> <?php } ?> <?php if ($gangloana != ""){ ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="contenthead"> <tr> <td>gang loan Armor</td> </tr> </table> <table width='100%' border="0" cellpadding="0" cellspacing="0" class="contentcontent"><tr> <?php echo $gangloana; ?></tr> </table> <?php } ?> give me some rates or if any one needs help to in stall let me no screen shots http://prntscr.com/7i2f2 http://prntscr.com/7i2fw http://prntscr.com/7i2gq http://prntscr.com/7i2hz http://prntscr.com/7i2jo http://prntscr.com/7i2ku
-
<?php include_once(DIRNAME(__FILE__) . '/header.php'); if($_POST['drugs']){ $gain = abs(intval($_POST['drug'])) * 33000000; if($user_class->bank > $gain){ echo Message('you just bought '.prettynum($_POST['drug']).' points for '.prettynum($gain).' points of the points dealer'); $newbank = $user_class->bank - $gain; $newpoints = $user_class->points + $gain; $result = mysql_query("UPDATE `users` SET `points`='".$newpoints."', `bank`='".$newbank."' WHERE `id`='".$user_class->id."'"); } else { echo Message("You don't have enough money for this warrior ."); } } ?> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="contenthead"> <tr> <td>points dealer</td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="contentcontent"> <tr> <td height="177" align="CENTER"> <p><strong>Note: if you buy points from me you cant have points for sale in the black market , you cant have money in 5050 cash ,or the stock market <br /> any warrior sending cash to other warrior to try cheat the points dealer will not work <br /> cost 33,000,000 per point warrior <br> how many</strong> <form method="post"> <select name="drug" class="areatest"> <option value="1" selected="selected">1 point</option> <option value="10">10 points</option> <option value="50">50 points</option> <option value="100">100 points</option> <option value="500">500 points</option> <option value="25000">25 k points</option> <option value="50000">50 k points</option> <option value="100000">100 k points</option> </select><br /> <input name="drugs" type="submit" class="buttong" id="button" value="buy points" /></form> </td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="contentcontent1"> <tr> <td height="23"> </td> </tr> </table> <?php include_once(DIRNAME(__FILE__) . '/footer.php'); ?> simple and clean
-
when you read the mail well its not the send files must be the file that you are reading the mail from
-
$mailBody = stripslashes(str_replace("\rn", "[br\]", $_POST['mailBody'])); replace that with this $mailBody = stripslashes($_POST['mailBody']."\n");
-
i have the npc system i made my self it shows in attack logs and its based on your level and drugs if you have the drugs on you can beat them if you dont you lose more fights
-
code no am not giving it away just letting you see the new mod
-
warrior can go to the gym now and do training to increase there gym stats screen shot of my work http://prntscr.com/6f7lz or fight the gym trainer get 3 gym for free if you beat the trainer 3 times you get all 3 gym if you beat him 2 times you get two gyms of one time you get 1 gym http://prntscr.com/6f7sw
-
call this gangjobs.php <?php include_once(DIRNAME(__FILE__) . '/header.php'); if($_GET['action']=="quit"){ $result = sprintf("UPDATE `users` SET `gangjobs` = '0' WHERE `id`='".$_SESSION['id']."'", mysql_real_escape_string($users), mysql_real_escape_string($gangjobs)); mysql_query($result); $user_class = new User($_SESSION['id']); }if($_GET['take'] != ''){ $Take = abs(intval($_GET['take'])); $result = mysql_query("SELECT * FROM `gangjobs` WHERE `id`='".$Take."'"); $worked = mysql_fetch_array($result); $gang_class = New Gang($user_class->gang); if(($worked['level'] > $gang_class->level)) { $error = "You don't have the gang level to take this job.<br>"; } if ($worked['name'] == ""){ $error = "That's not a real job."; } if($error == "") { $result = sprintf("UPDATE `users` SET `gangjobs` = '".$Take."' WHERE `id`='".$_SESSION['id']."'", mysql_real_escape_string($users), mysql_real_escape_string($gangjobs)); mysql_query($result); $user_class = new User($_SESSION['id']); } else { echo Message($error); }}if ($user_class->gangjobs != 0){ $result = mysql_query("SELECT * FROM `gangjobs` WHERE `id`='".$user_class->gangjobs."' ORDER BY `money`"); $worked = mysql_fetch_array($result); echo "<tr><td class='contenthead'>Current gangJob</td></tr><tr><td class='contentcontent'>You are currently a ".$worked['name']."<br>You make $".prettynum($worked['money'])." a day.<br><br><a href='gangjobs.php?action=quit'>Quit Job</a></td></tr>"; } ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="contenthead"> <tr> <td>gang jobs</td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class='contentcontent'> <tr> <td width="27%">gang Job</td> <td width="24%" align="center">gang level</td> <td width="24%" align="center">Daily Payment</td> <td width="25%" align="center">Apply For gangJob</td> </tr> </table> <?php $result = mysql_query("SELECT * FROM `gangjobs` ORDER BY `money` ASC"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $gang_class = new Gang($user_class->gang); if($gang_class->level > $line['level']){ $job = "<button class='buttong' onclick=window.location.href='gangjobs.php?take=".$line['id']."'>Take Job</font></button>"; }else{ $job =""; } echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='contentcontent'> <tr> <td width='27%'>".$line['name']."</td> <td width='24%' align='center'>".$line['level']."</td> <td width='24%' align='center'>$".prettynum($line['money'])."</td> <td width='25%' align='center'>".$job." </td> </tr> </table>"; } echo"<table width='100%' border='0' cellspacing='0' cellpadding='0' class='contentcontent1'> <tr></td> </tr> </table>"; ?> <?php include_once(DIRNAME(__FILE__) . '/footer.php'); ?> add this in rollover if($updates_user->gangjobs != 0){ $result_job = mysql_query("SELECT * FROM `gangjobs` WHERE `id`='".$updates_user->gangjobs."'"); $worked_job = mysql_fetch_array($result_job); $newmoney = $newmoney + $worked_job['money']; Send_Event($updates_user->id, "<font color = 'yellow'>You earned </font><font color = '#ffffff'>$".$worked_job['money']."</font> <font color = 'yellow'>from your gangjob. You now have </font> $".$newmoney); } add this in gang.php try add it where you quit the gang so it reset the gang job to 0 and dont give max money in other gang if they are low level gangs $result = sprintf("UPDATE `warriorusers` SET `gangjobs` = '0' WHERE `id`='".$user_class->id."'", mysql_real_escape_string($warriorusers), mysql_real_escape_string($gangjobs)); mysql_query($result); Sql DROP TABLE IF EXISTS `gangjobs`; CREATE TABLE IF NOT EXISTS `gangjobs` ( `id` int(4) NOT NULL AUTO_INCREMENT, `name` varchar(50) COLLATE latin1_general_ci NOT NULL, `money` bigint(255) NOT NULL, `level` int(5) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=0 ; And add gangjobs in grpgusers table some screen shots http://prntscr.com/6dx0g http://prntscr.com/6dxhr give me some feed back
-
more updates to my game in this mod you can other user pc and do upgrades to your pc and add firewalls need to crack the password to get in the pc some images http://prntscr.com/60xs6 screen 1 http://prntscr.com/60xt9 screen 2 http://prntscr.com/60xu3 screen 3 http://prntscr.com/60xva screen 4 give me some feed back on this tell me wot you think not 100% complete yet
-
ok this mods have been made by me in this mod you can make puppy's if you have the dog mods How it Works well you can breed dogs and the dogs have pups they can have random litters liters form 1 to 6 puppy's and other users on your game can steal them for exp mines is set at 700 exp easy changed to suit your game don't cost any money to bread dogs takes 10 days for the puppy's to be ready you can change the name of the pups along with the images wot else can be done with the pups is that you can sell them or give them over to the person who made them with you some screen shots http://prntscr.com/5rz0y http://prntscr.com/5rz1r http://prntscr.com/5rz2d
-
the trick is to stop user login on a proxy and if they do it strips the proxy from there ip so that there real ips showing like before you log please note any proxy on the site have been stripped so its your own ip and you can no longer hide your ip entering this site Your ip is ******** to show there own ip but i no some proxy will and cant be strip