Просмотр файла gta/city1/elite.php

Размер файла: 7.52Kb
  1. <?php
  2. #####################################################
  3. # mod by -=LesNIK=- #
  4. # icq 366244181 #
  5. # Официальный сайт мода http://wenz.net.ru #
  6. # все ответы на вопросы и помощь по скрипту #
  7. # вы можете получить только там! #
  8. # #
  9. # Вы не имеете право вносить #
  10. # свои изменения в данный мод!#
  11. # #
  12. # Уважайте труд автора! #
  13. #####################################################
  14.  
  15. include "./../ini3.php";
  16. include "./../includes/header2.php";
  17. include "./../includes/inc_online.php";
  18. print "<p><small>";
  19.  
  20. $id=cyr(htmlspecialchars(stripslashes(trim($id))));
  21. $pass=cyr(htmlspecialchars(stripslashes(trim($pass))));
  22.  
  23. if(!empty($id))
  24. {
  25. $q = mysql_query("select secur,golod,voodoo,nums,guns,cars,id,login,pass,money,level,police,health,zav,lsd,ban from users where id='".$id."';");
  26. }
  27. else
  28. {
  29. die ($lang['empty_login']."</small></p></card></wml>");
  30. }
  31.  
  32. $data = mysql_fetch_array($q);
  33.  
  34. $id=$data['id'];
  35. $login=$data['login'];
  36. $money=$data['money'];
  37. $level=$data['level'];
  38. $police=$data['police'];
  39. $stage=$data['stage'];
  40. $health=$data['health'];
  41. $cars=$data['cars'];
  42. $guns=$data['guns'];
  43. $nums=$data['nums'];
  44. $voo_por=$data['voodoo'];
  45. $golod=$data['golod'];
  46. $secur=$data['secur'];
  47. $zav=$data['zav'];
  48. $lsd=$data['lsd'];
  49. $ban=$data['ban'];
  50.  
  51. if($pass!=$data['pass'])
  52. {
  53. die ($lang['empty_login']."</small></p></card></wml>");
  54. }
  55.  
  56. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  57. if($ban==0)
  58. {
  59.  
  60. include "./../includes/inc_secur.php";
  61. include "./../includes/inc_golod.php";
  62. include "./../includes/inc_hospital.php";
  63. include "./../includes/inc_police.php";
  64. include "./../includes/inc_die.php";
  65. include "./../includes/inc_voodoo.php";
  66. include "./../includes/inc_attack.php";
  67. include "./../includes/inc_mes.php";
  68. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  69. $result = mysql_query("SELECT * FROM `themes`");
  70. $ths = mysql_num_rows($result);
  71. $result = mysql_query("SELECT * FROM `posts`");
  72. $pts = mysql_num_rows($result);
  73. echo'<a href="./../forum.php?id='.$id.'&amp;pass='.$pass.'">Форум</a> (<b>'.$ths.'</b>|<b>'.$pts.'</b>)<br/>';
  74.  
  75. print "<b>".$lang['game_city1']."</b><br/>";
  76.  
  77.  
  78.  
  79.  
  80. switch ($mode)
  81. {
  82. case "1a":
  83. print "<u>[".$lang['el_1avenu']."]</u><br/>";
  84.  
  85. if(empty($what))
  86. {
  87. print "<a href=\"elite.php?id=$id&amp;pass=$pass&amp;mode=1a&amp;what=os\">".$lang['el_os']."</a><br/>";
  88. /*print "<a href=\"museum.php?id=$id&amp;pass=$pass\"> </a><br/>";*/
  89. }
  90. elseif($what='os')
  91. {
  92.  
  93. $os_cars=array('Жигули','Лада Калина','Вуду','Внедорожник','Ламборджини','Феррари','Лимузин','Линкольн','Toyota Corolla');
  94. $cars_rand = rand(0, count($os_cars)-1);
  95.  
  96. if(empty($tachka) || empty($at_gun))
  97. {
  98. print $lang['el_1av_mes'];
  99. print "<b>".$os_cars[$cars_rand]."</b><br/>";
  100.  
  101. if(!empty($guns))
  102. {
  103. $guns_array = explode(".", $guns);
  104. $count_guns=count($guns_array);
  105. //print $lang['cops_select_gun']."</small><br/><select name=\"at_gun\">";
  106. //for($i=0;$i<$count_guns;$i++)
  107. //{
  108. //print "<option value=\"".$guns_array[$i]."\">".$guns_array[$i]."</option>";
  109. //}
  110. //print "</select><br/><small>";
  111. //print "
  112. //<anchor>".$lang['uv_try_steal']."
  113. //<go href=\"elite.php?id=$id&amp;pass=$pass&amp;mode=1a&amp;what=os\" method=\"post\">
  114. //<postfield name=\"tachka\" value=\"".$os_cars[$cars_rand]."\"/>
  115. //<postfield name=\"at_gun\" value=\"$(at_gun)\"/>
  116. //</go>
  117. //</anchor><br/>";
  118. print $lang['cops_select_gun']." <b>($count_guns)</b>:</small>
  119. <form action=\"elite.php?id=$id&amp;pass=$pass&amp;mode=1a&amp;what=os\" method=\"post\">
  120. <br/>";
  121. print "<select name=\"at_gun\">";
  122. for($i=0;$i<$count_guns;$i++)
  123. {
  124. print "<option value=\"".$guns_array[$i]."\">".$guns_array[$i]."</option>";
  125. }
  126. print "</select><br/>
  127. <input type=\"hidden\" name=\"tachka\" value=\"".$os_cars[$cars_rand]."\"/>
  128. <postfield name=\"at_gun\" value=\"$(at_gun)\"/>";
  129. echo "<input class=\"button\" type=\"submit\" value=\"".$lang['ok']."\"/>
  130. </form>";
  131. }
  132.  
  133. }
  134. else
  135. {
  136. if($at_gun=="Кастет")$at_gun=1;
  137. elseif($at_gun=="Нож")$at_gun=2;
  138. elseif($at_gun=="Дубинка")$at_gun=3;
  139. elseif($at_gun=="ПМ")$at_gun=4;
  140. elseif($at_gun=="Мачете")$at_gun=5;
  141. elseif($at_gun=="Беретта")$at_gun=6;
  142. elseif($at_gun=="Меч")$at_gun=7;
  143. elseif($at_gun=="Калашников")$at_gun=8;
  144. elseif($at_gun=="Взрывчатка")$at_gun=9;
  145. elseif($at_gun=="Электрошокер")$at_gun=10;
  146. elseif($at_gun=="Напалм")$at_gun=11;
  147. elseif($at_gun=="Базука")$at_gun=12;
  148. elseif($at_gun=="Гранатомет")$at_gun=13;
  149. elseif($at_gun=="ПЗРК")$at_gun=14;
  150. elseif($at_gun=="Слонобой")$at_gun=15;
  151. elseif($at_gun=="Ракетная установка")$at_gun=16;
  152. elseif($at_gun=="МЕ 85 Combat")$at_gun=17;
  153. elseif($at_gun=="Rohm 735")$at_gun=18;
  154. elseif($at_gun=="Brunner CZ 75")$at_gun=19;
  155. elseif($at_gun=="Лазерное оружие")$at_gun=20;
  156.  
  157. $gun_cop=rand(8,18);
  158.  
  159. if($gun_cop==8)$cop_gun="Калашников";
  160. elseif($gun_cop==9)$cop_gun="Взрывчатка";
  161. elseif($gun_cop==10)$cop_gun="Электрошокер";
  162. elseif($gun_cop==11)$cop_gun="Напалм";
  163. elseif($gun_cop==12)$cop_gun="Базука";
  164. elseif($gun_cop==13)$cop_gun="Гранатомет";
  165. elseif($gun_cop==14)$cop_gun="ПЗРК";
  166. elseif($gun_cop==15)$cop_gun="Слонобой";
  167. elseif($gun_cop==16)$cop_gun="Ракетная установка";
  168. elseif($gun_cop==17)$cop_gun="МЕ 85 Combat";
  169. elseif($gun_cop==18)$cop_gun="Rohm 735";
  170.  
  171. $police=$police+2;
  172. if($gun_cop>$at_gun)
  173. {
  174. $health=$health-50;
  175. if($health<0) $health=0;
  176. mysql_query("update users set health='".$health."',police='".$police."' where id='".$id."';");
  177. print $lang['bank_grab_fuck']." ".$cop_gun."!<br/>".$lang['bank_grab_health']." ".$health."%<br/>";
  178. }
  179. else
  180. {
  181. $grab_money=$money+$bmoney;
  182. mysql_query("update users set money='".$grab_money."',police='".$police."' where id='".$id."';");
  183. if(empty($cars))
  184. mysql_query("update users set cars='$tachka' where id='".$id."';");
  185. else
  186. mysql_query("update users set cars='$cars.$tachka' where id='".$id."';");
  187. print "<b>$tachka</b> ".$lang['el_car_now_at_you']."<br/>";
  188. }
  189.  
  190. }
  191.  
  192.  
  193. }
  194.  
  195. print "&gt;<a href=\"elite.php?id=$id&amp;pass=$pass\">".$lang['area_elite']."</a><br/>";
  196. break;
  197. default:
  198. print "<u>[".$lang['area_elite']."]</u><br/>";
  199. print $lang['el_mes']."<br/>";
  200. /* print "<a href=\"museum.php?id=$id&amp;pass=$pass\"></a><br/>";*/
  201. print "<a href=\"rest.php?id=$id&amp;pass=$pass\">".$lang['rest']."</a><br/>";
  202. print "<a href=\"elite.php?id=$id&amp;pass=$pass&amp;mode=1a\">".$lang['el_1avenu']."</a><br/>";
  203. print "<a href=\"osobnyaki.php?id=$id&amp;pass=$pass\">".$lang['el_2avenu']."</a><br/>";
  204. print "<a href=\"security.php?id=$id&amp;pass=$pass\">".$lang['el_security']."</a><br/>";
  205. print "&gt;<a href=\"area.php?id=$id&amp;pass=$pass\">".$lang['city1_area']."</a><br/>";
  206. break;
  207. }
  208.  
  209. include("./../includes/inc_in_city.php");
  210.  
  211. mysql_close();
  212. include "./../includes/footer.php";
  213. echo '<br/><br/>-------<br/><div class="msg"><a href="http://wenz.net.ru">Сайт вап мастеру</a></div><br/>';
  214.  
  215. }
  216.  
  217. elseif($ban==1)
  218. {
  219. die ($lang['empty_login']."</small></p></card></wml>");
  220.  
  221. }
  222. ?>