Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.93 KB | None | 0 0
  1. CMD:rangai(playerid, params[])
  2. {
  3. if(pDB[playerid][JobLeadID] < 1) return OnPlayerCommandText(playerid, "UnknownCommand");
  4. switch(pDB[playerid][JobLeadID])
  5. {
  6. case 1:
  7. {
  8. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Policija'" );
  9. mysql_store_result( );
  10. new RANGAS1[ 128 ];
  11. new RANGAS2[ 128 ];
  12. new RANGAS3[ 128 ];
  13. new RANGAS4[ 128 ];
  14. new RANGAS5[ 128 ];
  15. new RANGAS6[ 128 ];
  16. new RANGAS7[ 128 ];
  17. new KINTMASISRANGAMS[ 1048 ];
  18. new SAUGOMRANGUS[ 1048 ];
  19. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  20. {
  21. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  22. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  23. }
  24. mysql_free_result( );
  25. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  26. }
  27. case 2:
  28. {
  29. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Medikai'" );
  30. mysql_store_result( );
  31. new RANGAS1[ 128 ];
  32. new RANGAS2[ 128 ];
  33. new RANGAS3[ 128 ];
  34. new RANGAS4[ 128 ];
  35. new RANGAS5[ 128 ];
  36. new RANGAS6[ 128 ];
  37. new RANGAS7[ 128 ];
  38. new KINTMASISRANGAMS[ 1048 ];
  39. new SAUGOMRANGUS[ 1048 ];
  40. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  41. {
  42. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  43. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  44. }
  45. mysql_free_result( );
  46. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  47. }
  48. case 3:
  49. {
  50. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Mechanikai'" );
  51. mysql_store_result( );
  52. new RANGAS1[ 128 ];
  53. new RANGAS2[ 128 ];
  54. new RANGAS3[ 128 ];
  55. new RANGAS4[ 128 ];
  56. new RANGAS5[ 128 ];
  57. new RANGAS6[ 128 ];
  58. new RANGAS7[ 128 ];
  59. new KINTMASISRANGAMS[ 1048 ];
  60. new SAUGOMRANGUS[ 1048 ];
  61. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  62. {
  63. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  64. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  65. }
  66. mysql_free_result( );
  67. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  68. }
  69. case 4:
  70. {
  71. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Taxi'" );
  72. mysql_store_result( );
  73. new RANGAS1[ 128 ];
  74. new RANGAS2[ 128 ];
  75. new RANGAS3[ 128 ];
  76. new RANGAS4[ 128 ];
  77. new RANGAS5[ 128 ];
  78. new RANGAS6[ 128 ];
  79. new RANGAS7[ 128 ];
  80. new KINTMASISRANGAMS[ 1048 ];
  81. new SAUGOMRANGUS[ 1048 ];
  82. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  83. {
  84. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  85. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  86. }
  87. mysql_free_result( );
  88. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  89. }
  90. case 5:
  91. {
  92. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'ETA-RADIO'" );
  93. mysql_store_result( );
  94. new RANGAS1[ 128 ];
  95. new RANGAS2[ 128 ];
  96. new RANGAS3[ 128 ];
  97. new RANGAS4[ 128 ];
  98. new RANGAS5[ 128 ];
  99. new RANGAS6[ 128 ];
  100. new RANGAS7[ 128 ];
  101. new KINTMASISRANGAMS[ 1048 ];
  102. new SAUGOMRANGUS[ 1048 ];
  103. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  104. {
  105. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  106. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  107. }
  108. mysql_free_result( );
  109. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  110. }
  111. case 6:
  112. {
  113. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Furistai'" );
  114. mysql_store_result( );
  115. new RANGAS1[ 128 ];
  116. new RANGAS2[ 128 ];
  117. new RANGAS3[ 128 ];
  118. new RANGAS4[ 128 ];
  119. new RANGAS5[ 128 ];
  120. new RANGAS6[ 128 ];
  121. new RANGAS7[ 128 ];
  122. new KINTMASISRANGAMS[ 1048 ];
  123. new SAUGOMRANGUS[ 1048 ];
  124. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  125. {
  126. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  127. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  128. }
  129. mysql_free_result( );
  130. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  131. }
  132. case 9:
  133. {
  134. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Dyleriai'" );
  135. mysql_store_result( );
  136. new RANGAS1[ 128 ];
  137. new RANGAS2[ 128 ];
  138. new RANGAS3[ 128 ];
  139. new RANGAS4[ 128 ];
  140. new RANGAS5[ 128 ];
  141. new RANGAS6[ 128 ];
  142. new RANGAS7[ 128 ];
  143. new KINTMASISRANGAMS[ 1048 ];
  144. new SAUGOMRANGUS[ 1048 ];
  145. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  146. {
  147. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  148. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  149. }
  150. mysql_free_result( );
  151. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  152. }
  153. case 10:
  154. {
  155. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Yardies'" );
  156. mysql_store_result( );
  157. new RANGAS1[ 128 ];
  158. new RANGAS2[ 128 ];
  159. new RANGAS3[ 128 ];
  160. new RANGAS4[ 128 ];
  161. new RANGAS5[ 128 ];
  162. new RANGAS6[ 128 ];
  163. new RANGAS7[ 128 ];
  164. new KINTMASISRANGAMS[ 1048 ];
  165. new SAUGOMRANGUS[ 1048 ];
  166. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  167. {
  168. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  169. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  170. }
  171. mysql_free_result( );
  172. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  173. }
  174. case 12:
  175. {
  176. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Corleone'" );
  177. mysql_store_result( );
  178. new RANGAS1[ 128 ];
  179. new RANGAS2[ 128 ];
  180. new RANGAS3[ 128 ];
  181. new RANGAS4[ 128 ];
  182. new RANGAS5[ 128 ];
  183. new RANGAS6[ 128 ];
  184. new RANGAS7[ 128 ];
  185. new KINTMASISRANGAMS[ 1048 ];
  186. new SAUGOMRANGUS[ 1048 ];
  187. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  188. {
  189. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  190. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  191. }
  192. mysql_free_result( );
  193. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  194. }
  195. case 14:
  196. {
  197. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Aras'" );
  198. mysql_store_result( );
  199. new RANGAS1[ 128 ];
  200. new RANGAS2[ 128 ];
  201. new RANGAS3[ 128 ];
  202. new RANGAS4[ 128 ];
  203. new RANGAS5[ 128 ];
  204. new RANGAS6[ 128 ];
  205. new RANGAS7[ 128 ];
  206. new KINTMASISRANGAMS[ 1048 ];
  207. new SAUGOMRANGUS[ 1048 ];
  208. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  209. {
  210. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  211. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  212. }
  213. mysql_free_result( );
  214. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  215. }
  216. case 11:
  217. {
  218. mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Armija'" );
  219. mysql_store_result( );
  220. new RANGAS1[ 128 ];
  221. new RANGAS2[ 128 ];
  222. new RANGAS3[ 128 ];
  223. new RANGAS4[ 128 ];
  224. new RANGAS5[ 128 ];
  225. new RANGAS6[ 128 ];
  226. new RANGAS7[ 128 ];
  227. new KINTMASISRANGAMS[ 1048 ];
  228. new SAUGOMRANGUS[ 1048 ];
  229. while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
  230. {
  231. sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
  232. format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
  233. }
  234. mysql_free_result( );
  235. ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
  236. }
  237. }
  238. return 1;
  239. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement