Advertisement
Nofear192

Untitled

Oct 14th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.64 KB | None | 0 0
  1. dcmd_robskill(playerid,params[])
  2. {
  3. #pragma unused params
  4. new string[128];
  5. if(IsSpawned[playerid] != 1)
  6. {
  7. SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
  8. return 1;
  9. }
  10. if(gTeam[playerid] < 9)
  11. {
  12. SendClientMessage(playerid,COLOR_ERROR,"You cannot use this command with your class/skill.");
  13. return 1;
  14. }
  15. if(RobSkill[playerid] >= 0 && RobSkill[playerid] < 10)
  16. {
  17. format(string,sizeof(string),"Your robbing skill level is %d.\nYou can rob players and Supa Save.\nWhen you reach level 10 you will be able to rob\nthe four Drug Houses.",RobSkill[playerid]);
  18. ShowPlayerDialog(playerid,DIALOG_ROBSKILL,DIALOG_STYLE_MSGBOX,"{FF0000}Robbing Skill Level",string,"Ok","Cancel");
  19. return 1;
  20. }
  21. if(RobSkill[playerid] >= 10 && RobSkill[playerid] < 20)
  22. {
  23. format(string,sizeof(string),"Your robbing skill level is %d.\nYou can rob players, Supa Save and the four Drug\nHouses.\nWhen you reach level 20 you will be able to\nrob Otto's Cars.",RobSkill[playerid]);
  24. ShowPlayerDialog(playerid,DIALOG_ROBSKILL,DIALOG_STYLE_MSGBOX,"{FF0000}Robbing Skill Level",string,"Ok","Cancel");
  25. return 1;
  26. }
  27. if(RobSkill[playerid] >= 20 && RobSkill[playerid] < 30)
  28. {
  29. format(string,sizeof(string),"Your robbing skill level is %d.\nYou can rob places such as Ammunation.",RobSkill[playerid]);
  30. ShowPlayerDialog(playerid,DIALOG_ROBSKILL,DIALOG_STYLE_MSGBOX,"{FF0000}Robbing Skill Level",string,"Ok","Cancel");
  31. return 1;
  32. }
  33. if(RobSkill[playerid] >= 30)
  34. {
  35. format(string,sizeof(string),"Your robbing skill level is %d.\nYou can rob anywhere you want.\nYou are the best you can be.",RobSkill[playerid]);
  36. ShowPlayerDialog(playerid,DIALOG_ROBSKILL,DIALOG_STYLE_MSGBOX,"{FF0000}Robbing Skill Level",string,"Ok","Cancel");
  37. return 1;
  38. }
  39. return 1;
  40. }
  41.  
  42. dcmd_robstore(playerid,params[])
  43. {
  44. new string[128];
  45. #pragma unused params
  46. if(IsSpawned[playerid] != 1)
  47. {
  48. SendClientMessage(playerid,COLOR_ERROR,"You must be alive and spawned in order to be able to use this command.");
  49. return 1;
  50. }
  51. if(IsKidnapped[playerid] == 1)
  52. {
  53. SendClientMessage(playerid,COLOR_ERROR,"You are kidnapped. You cannot use this command.");
  54. return 1;
  55. }
  56. if(IsFrozen[playerid] == 1)
  57. {
  58. SendClientMessage(playerid,COLOR_ERROR,"You have been frozen by a Server Administrator. You cannot use this command.");
  59. return 1;
  60. }
  61. if(!IsPlayerInCheckpoint(playerid))
  62. {
  63. SendClientMessage(playerid,COLOR_ERROR,"You are not in the checkpoint of anywhere you can rob.");
  64. return 1;
  65. }
  66. if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_CIA || gTeam[playerid] == TEAM_MEDIC)
  67. {
  68. SendClientMessage(playerid,COLOR_ERROR,"You cannot rob things with your class/skill.");
  69. return 1;
  70. }
  71. if(getCheckpointType(playerid) != CP_BurgerShotMain && getCheckpointType(playerid) != CP_CluckinBellMain &&
  72. getCheckpointType(playerid) != CP_Ammunation && getCheckpointType(playerid) != CP_GayDarMain &&
  73. getCheckpointType(playerid) != CP_ZeroMain && getCheckpointType(playerid) != CP_MistysMain &&
  74. getCheckpointType(playerid) != CP_GYM && getCheckpointType(playerid) != CP_School &&
  75. getCheckpointType(playerid) != CP_WangCars && getCheckpointType(playerid) != CP_Train &&
  76. getCheckpointType(playerid) != CP_Barbers && getCheckpointType(playerid) != CP_PizzaMain &&
  77. getCheckpointType(playerid) != CP_ZipMain && getCheckpointType(playerid) != CP_VictimMain &&
  78. getCheckpointType(playerid) != CP_BincoMain && getCheckpointType(playerid) != CP_CityHallMain)
  79. {
  80. SendClientMessage(playerid,COLOR_ERROR,"You are not in the checkpoint of anywhere you can rob.");
  81. return 1;
  82. }
  83. new current_zone = player_zone[playerid];
  84. new rrand =random(100);
  85. if(getCheckpointType(playerid) == CP_BurgerShotMain)
  86. {
  87. if(zones[current_zone][zone_name] == zones[116][zone_name] || zones[current_zone][zone_name] == zones[117][zone_name])
  88. {
  89. if(GarciaBurgerShotRobbedRecently >= 1)
  90. {
  91. SendClientMessage(playerid,COLOR_ERROR,"The Garcia Burger Shot has been robbed recently.");
  92. return 1;
  93. }
  94. if(rrand <= 30)
  95. {
  96. SendClientMessage(playerid,COLOR_ERROR,"Garcia Burger Shot robbery failed.");
  97. GarciaBurgerShotRobbedRecently =320;
  98. return 1;
  99. }
  100. GarciaBurgerShotRobbedRecently =320;
  101. RobbingGarciaBurgerShot[playerid] =25;
  102. IncreaseWantedLevel(playerid,4);
  103. IncreasePlayerScore(playerid,1);
  104. format(string,sizeof(string),"Robbing Burger Shot.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingGarciaBurgerShot[playerid]);
  105. ShowPlayerDialog(playerid,DIALOG_BURGERSHOT,DIALOG_STYLE_MSGBOX,"{FF0000}Burger Shot Robbery",string,"Ok","Cancel");
  106.  
  107. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Garcia Burger Shot! Get To Burger Shot and arrest the suspect.",PlayerName(playerid),playerid);
  108. SendClientMessageToAllCops(string);
  109.  
  110. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
  111. SendClientMessageToAll(COLOR_RED,string);
  112.  
  113. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
  114. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  115. return 1;
  116. }
  117. if(zones[current_zone][zone_name] == zones[162][zone_name])
  118. {
  119. if(JHBurgerShotRobbedRecently >= 1)
  120. {
  121. SendClientMessage(playerid,COLOR_ERROR,"The Juniper Hollow Burger Shot has been robbed recently.");
  122. return 1;
  123. }
  124. if(rrand <= 30)
  125. {
  126. SendClientMessage(playerid,COLOR_ERROR,"Juniper Hollow Burger Shot robbery failed.");
  127. JHBurgerShotRobbedRecently =320;
  128. return 1;
  129. }
  130. JHBurgerShotRobbedRecently =320;
  131. RobbingJHBurgerShot[playerid] =25;
  132. IncreaseWantedLevel(playerid,4);
  133. IncreasePlayerScore(playerid,1);
  134. format(string,sizeof(string),"Robbing Burger Shot.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingJHBurgerShot[playerid]);
  135. ShowPlayerDialog(playerid,DIALOG_BURGERSHOT,DIALOG_STYLE_MSGBOX,"{FF0000}Burger Shot Robbery",string,"Ok","Cancel");
  136.  
  137. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Juniper Hollow Burger Shot! Get To Burger Shot and arrest the suspect.",PlayerName(playerid),playerid);
  138. SendClientMessageToAllCops(string);
  139.  
  140. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
  141. SendClientMessageToAll(COLOR_RED,string);
  142.  
  143. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
  144. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  145. return 1;
  146. }
  147. if(zones[current_zone][zone_name] == zones[49][zone_name] || zones[current_zone][zone_name] == zones[50][zone_name] ||
  148. zones[current_zone][zone_name] == zones[51][zone_name] || zones[current_zone][zone_name] == zones[52][zone_name] ||
  149. zones[current_zone][zone_name] == zones[53][zone_name] || zones[current_zone][zone_name] == zones[54][zone_name])
  150. {
  151. if(DownBurgerShotRobbedRecently >= 1)
  152. {
  153. SendClientMessage(playerid,COLOR_ERROR,"The Downtown Burger Shot has been robbed recently.");
  154. return 1;
  155. }
  156. if(rrand <= 30)
  157. {
  158. SendClientMessage(playerid,COLOR_ERROR,"Downtown Burger Shot robbery failed.");
  159. DownBurgerShotRobbedRecently =320;
  160. return 1;
  161. }
  162. DownBurgerShotRobbedRecently =320;
  163. RobbingDownBurgerShot[playerid] =25;
  164. IncreaseWantedLevel(playerid,4);
  165. IncreasePlayerScore(playerid,1);
  166. format(string,sizeof(string),"Robbing Burger Shot.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingDownBurgerShot[playerid]);
  167. ShowPlayerDialog(playerid,DIALOG_BURGERSHOT,DIALOG_STYLE_MSGBOX,"{FF0000}Burger Shot Robbery",string,"Ok","Cancel");
  168.  
  169. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Downtown Burger Shot! Get To Burger Shot and arrest the suspect.",PlayerName(playerid),playerid);
  170. SendClientMessageToAllCops(string);
  171.  
  172. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
  173. SendClientMessageToAll(COLOR_RED,string);
  174.  
  175. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Burger Shot ..",PlayerName(playerid),playerid);
  176. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  177. return 1;
  178. }
  179. return 1;
  180. }
  181. if(getCheckpointType(playerid) == CP_ZipMain)
  182. {
  183. if(zones[current_zone][zone_name] == zones[49][zone_name] || zones[current_zone][zone_name] == zones[50][zone_name] ||
  184. zones[current_zone][zone_name] == zones[51][zone_name] || zones[current_zone][zone_name] == zones[52][zone_name] ||
  185. zones[current_zone][zone_name] == zones[53][zone_name] || zones[current_zone][zone_name] == zones[54][zone_name])
  186. {
  187. if(DownZipRobbedRecently >= 1)
  188. {
  189. SendClientMessage(playerid,COLOR_ERROR,"The Downtown Zip has been robbed recently.");
  190. return 1;
  191. }
  192. if(rrand <= 30)
  193. {
  194. SendClientMessage(playerid,COLOR_ERROR,"Downtown Zip robbery failed.");
  195. DownZipRobbedRecently =320;
  196. return 1;
  197. }
  198. DownZipRobbedRecently =320;
  199. RobbingDownZip[playerid] =25;
  200. IncreaseWantedLevel(playerid,4);
  201. IncreasePlayerScore(playerid,1);
  202. format(string,sizeof(string),"Robbing Zip.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingDownZip[playerid]);
  203. ShowPlayerDialog(playerid,DIALOG_ZIP,DIALOG_STYLE_MSGBOX,"{FF0000}Zip Robbery",string,"Ok","Cancel");
  204.  
  205. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Downtown Zip! Get To Zip and arrest the suspect.",PlayerName(playerid),playerid);
  206. SendClientMessageToAllCops(string);
  207.  
  208. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Zip ..",PlayerName(playerid),playerid);
  209. SendClientMessageToAll(COLOR_RED,string);
  210.  
  211. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Zip ..",PlayerName(playerid),playerid);
  212. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  213. return 1;
  214. }
  215. return 1;
  216. }
  217. if(getCheckpointType(playerid) == CP_BincoMain)
  218. {
  219. if(zones[current_zone][zone_name] == zones[161][zone_name])
  220. {
  221. if(JHBincoRobbedRecently >= 1)
  222. {
  223. SendClientMessage(playerid,COLOR_ERROR,"The Juniper Hill Binco has been robbed recently.");
  224. return 1;
  225. }
  226. if(rrand <= 30)
  227. {
  228. SendClientMessage(playerid,COLOR_ERROR,"Juniper Hill Binco robbery failed.");
  229. JHBincoRobbedRecently =320;
  230. return 1;
  231. }
  232. JHBincoRobbedRecently =320;
  233. RobbingJHBinco[playerid] =25;
  234. IncreaseWantedLevel(playerid,4);
  235. IncreasePlayerScore(playerid,1);
  236. format(string,sizeof(string),"Robbing Binco.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingJHBinco[playerid]);
  237. ShowPlayerDialog(playerid,DIALOG_BINCO,DIALOG_STYLE_MSGBOX,"{FF0000}Binco Robbery",string,"Ok","Cancel");
  238.  
  239. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Juniper Hill Binco! Get To Binco and arrest the suspect.",PlayerName(playerid),playerid);
  240. SendClientMessageToAllCops(string);
  241.  
  242. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Binco ..",PlayerName(playerid),playerid);
  243. SendClientMessageToAll(COLOR_RED,string);
  244.  
  245. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Binco ..",PlayerName(playerid),playerid);
  246. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  247. return 1;
  248. }
  249. return 1;
  250. }
  251. if(getCheckpointType(playerid) == CP_VictimMain)
  252. {
  253. if(zones[current_zone][zone_name] == zones[49][zone_name] || zones[current_zone][zone_name] == zones[50][zone_name] ||
  254. zones[current_zone][zone_name] == zones[51][zone_name] || zones[current_zone][zone_name] == zones[52][zone_name] ||
  255. zones[current_zone][zone_name] == zones[53][zone_name] || zones[current_zone][zone_name] == zones[54][zone_name])
  256. {
  257. if(DownVictimRobbedRecently >= 1)
  258. {
  259. SendClientMessage(playerid,COLOR_ERROR,"The Downtown Victim has been robbed recently.");
  260. return 1;
  261. }
  262. if(rrand <= 30)
  263. {
  264. SendClientMessage(playerid,COLOR_ERROR,"Downtown Victim robbery failed.");
  265. DownVictimRobbedRecently =320;
  266. return 1;
  267. }
  268. DownVictimRobbedRecently =320;
  269. RobbingDownVictim[playerid] =25;
  270. IncreaseWantedLevel(playerid,4);
  271. IncreasePlayerScore(playerid,1);
  272. format(string,sizeof(string),"Robbing Victim.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingDownVictim[playerid]);
  273. ShowPlayerDialog(playerid,DIALOG_VICTIM,DIALOG_STYLE_MSGBOX,"{FF0000}Victim Robbery",string,"Ok","Cancel");
  274.  
  275. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Downtown Victim! Get To Victim and arrest the suspect.",PlayerName(playerid),playerid);
  276. SendClientMessageToAllCops(string);
  277.  
  278. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Victim ..",PlayerName(playerid),playerid);
  279. SendClientMessageToAll(COLOR_RED,string);
  280.  
  281. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Victim ..",PlayerName(playerid),playerid);
  282. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  283. return 1;
  284. }
  285. return 1;
  286. }
  287. if(getCheckpointType(playerid) == CP_PizzaMain)
  288. {
  289. if(zones[current_zone][zone_name] == zones[96][zone_name] || zones[current_zone][zone_name] == zones[97][zone_name] ||
  290. zones[current_zone][zone_name] == zones[98][zone_name])
  291. {
  292. if(EsplanadePizzaRobbedRecently >= 1)
  293. {
  294. SendClientMessage(playerid,COLOR_ERROR,"The Esplanade Well Stacked Pizza has been robbed recently.");
  295. return 1;
  296. }
  297. if(rrand <= 30)
  298. {
  299. SendClientMessage(playerid,COLOR_ERROR,"Esplanade Well Stacked Pizza robbery failed.");
  300. EsplanadePizzaRobbedRecently =320;
  301. return 1;
  302. }
  303. EsplanadePizzaRobbedRecently =320;
  304. RobbingEsplanadePizza[playerid] =25;
  305. IncreaseWantedLevel(playerid,4);
  306. IncreasePlayerScore(playerid,1);
  307. format(string,sizeof(string),"Robbing Well Stacked Pizza.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingEsplanadePizza[playerid]);
  308. ShowPlayerDialog(playerid,DIALOG_PIZZA,DIALOG_STYLE_MSGBOX,"{FF0000}Well Stacked Pizza Robbery",string,"Ok","Cancel");
  309.  
  310. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Esplanade Well Stacked Pizza! Go and arrest the suspect.",PlayerName(playerid),playerid);
  311. SendClientMessageToAllCops(string);
  312.  
  313. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Well Stacked Pizza ..",PlayerName(playerid),playerid);
  314. SendClientMessageToAll(COLOR_RED,string);
  315.  
  316. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Well Stacked Pizza ..",PlayerName(playerid),playerid);
  317. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  318. return 1;
  319. }
  320. if(zones[current_zone][zone_name] == zones[102][zone_name])
  321. {
  322. if(FinancialPizzaRobbedRecently >= 1)
  323. {
  324. SendClientMessage(playerid,COLOR_ERROR,"The Financial Well Stacked Pizza has been robbed recently.");
  325. return 1;
  326. }
  327. if(rrand <= 30)
  328. {
  329. SendClientMessage(playerid,COLOR_ERROR,"Financial Well Stacked Pizza robbery failed.");
  330. FinancialPizzaRobbedRecently =320;
  331. return 1;
  332. }
  333. FinancialPizzaRobbedRecently =320;
  334. RobbingFinancialPizza[playerid] =25;
  335. IncreaseWantedLevel(playerid,4);
  336. IncreasePlayerScore(playerid,1);
  337. format(string,sizeof(string),"Robbing Well Stacked Pizza.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingFinancialPizza[playerid]);
  338. ShowPlayerDialog(playerid,DIALOG_PIZZA,DIALOG_STYLE_MSGBOX,"{FF0000}Well Stacked Pizza Robbery",string,"Ok","Cancel");
  339.  
  340. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Financial Well Stacked Pizza! Go and arrest the suspect.",PlayerName(playerid),playerid);
  341. SendClientMessageToAllCops(string);
  342.  
  343. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Well Stacked Pizza ..",PlayerName(playerid),playerid);
  344. SendClientMessageToAll(COLOR_RED,string);
  345.  
  346. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Well Stacked Pizza ..",PlayerName(playerid),playerid);
  347. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  348. return 1;
  349. }
  350. return 1;
  351. }
  352. if(getCheckpointType(playerid) == CP_Ammunation)
  353. {
  354. if(zones[current_zone][zone_name] == zones[241][zone_name] || zones[current_zone][zone_name] == zones[242][zone_name] ||
  355. zones[current_zone][zone_name] == zones[243][zone_name])
  356. {
  357. if(AmmunationRobbedRecently >= 1)
  358. {
  359. SendClientMessage(playerid,COLOR_ERROR,"The Ammunation has been robbed recently.");
  360. return 1;
  361. }
  362. if(RobSkill[playerid] < 20)
  363. {
  364. SendClientMessage(playerid,COLOR_ERROR,"You must have a robbing skill level of 20 to rob Ammunation. Check /robskill to see what you can rob.");
  365. return 1;
  366. }
  367. if(rrand <= 30)
  368. {
  369. SendClientMessage(playerid,COLOR_ERROR,"Ammunation robbery failed.");
  370. AmmunationRobbedRecently =320;
  371. return 1;
  372. }
  373. AmmunationRobbedRecently =320;
  374. RobbingAmmunation[playerid] =25;
  375. IncreaseWantedLevel(playerid,4);
  376. IncreasePlayerScore(playerid,1);
  377. format(string,sizeof(string),"Robbing Ammunation.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingAmmunation[playerid]);
  378. ShowPlayerDialog(playerid,DIALOG_AMMUNATION,DIALOG_STYLE_MSGBOX,"{FF0000}Ammunation Robbery",string,"Ok","Cancel");
  379.  
  380. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Ammunation! Get To Ammunation and arrest the suspect.",PlayerName(playerid),playerid);
  381. SendClientMessageToAllCops(string);
  382.  
  383. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Ammunation ..",PlayerName(playerid),playerid);
  384. SendClientMessageToAll(COLOR_RED,string);
  385.  
  386. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Ammunation ..",PlayerName(playerid),playerid);
  387. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  388. return 1;
  389. }
  390. return 1;
  391. }
  392. if(getCheckpointType(playerid) == CP_Jizzys)
  393. {
  394. if(JizzysRobbedRecently >= 1)
  395. {
  396. SendClientMessage(playerid,COLOR_ERROR,"Jizzy's has been robbed recently.");
  397. return 1;
  398. }
  399. if(RobSkill[playerid] < 20)
  400. {
  401. SendClientMessage(playerid,COLOR_ERROR,"You must have a robbing skill level of 20 to rob Jizzy's. Check /robskill to see what you can rob.");
  402. return 1;
  403. }
  404. if(rrand <= 30)
  405. {
  406. SendClientMessage(playerid,COLOR_ERROR,"Jizzy's robbery failed.");
  407. JizzysRobbedRecently =320;
  408. return 1;
  409. }
  410. JizzysRobbedRecently =320;
  411. RobbingJizzys[playerid] =25;
  412. IncreaseWantedLevel(playerid,4);
  413. IncreasePlayerScore(playerid,1);
  414. format(string,sizeof(string),"Robbing Jizzy's.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingJizzys[playerid]);
  415. ShowPlayerDialog(playerid,DIALOG_JIZZYS,DIALOG_STYLE_MSGBOX,"{FF0000}Jizzy's Robbery",string,"Ok","Cancel");
  416.  
  417. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob Jizzy's! Get To Jizzy's and arrest the suspect.",PlayerName(playerid),playerid);
  418. SendClientMessageToAllCops(string);
  419.  
  420. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Jizzy's ..",PlayerName(playerid),playerid);
  421. SendClientMessageToAll(COLOR_RED,string);
  422.  
  423. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Jizzy's ..",PlayerName(playerid),playerid);
  424. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  425. return 1;
  426. }
  427. if(getCheckpointType(playerid) == CP_CityHallMain)
  428. {
  429. if(CityHallRobbedRecently >= 1)
  430. {
  431. SendClientMessage(playerid,COLOR_ERROR,"The City Hall has been robbed recently.");
  432. return 1;
  433. }
  434. if(RobSkill[playerid] < 20)
  435. {
  436. SendClientMessage(playerid,COLOR_ERROR,"You must have a robbing skill level of 20 to rob the City Hall. Check /robskill to see what you can rob.");
  437. return 1;
  438. }
  439. if(rrand <= 30)
  440. {
  441. SendClientMessage(playerid,COLOR_ERROR,"City Hall robbery failed.");
  442. CityHallRobbedRecently =320;
  443. return 1;
  444. }
  445. CityHallRobbedRecently =320;
  446. RobbingCityHall[playerid] =25;
  447. IncreaseWantedLevel(playerid,4);
  448. IncreasePlayerScore(playerid,1);
  449. format(string,sizeof(string),"Robbing City Hall.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingCityHall[playerid]);
  450. ShowPlayerDialog(playerid,DIALOG_CITYHALL,DIALOG_STYLE_MSGBOX,"{FF0000}City Hall Robbery",string,"Ok","Cancel");
  451.  
  452. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the City Hall! Get To the City Hall and arrest the suspect.",PlayerName(playerid),playerid);
  453. SendClientMessageToAllCops(string);
  454.  
  455. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at the City Hall ..",PlayerName(playerid),playerid);
  456. SendClientMessageToAll(COLOR_RED,string);
  457.  
  458. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at the City Hall ..",PlayerName(playerid),playerid);
  459. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  460. return 1;
  461. }
  462. if(getCheckpointType(playerid) == CP_Barbers)
  463. {
  464. if(zones[current_zone][zone_name] == zones[258][zone_name] || zones[current_zone][zone_name] == zones[259][zone_name] ||
  465. zones[current_zone][zone_name] == zones[260][zone_name])
  466. {
  467. if(BarbersRobbedRecently >= 1)
  468. {
  469. SendClientMessage(playerid,COLOR_ERROR,"The Barbers has been robbed recently.");
  470. return 1;
  471. }
  472. if(rrand <= 30)
  473. {
  474. SendClientMessage(playerid,COLOR_ERROR,"Barbers robbery failed.");
  475. BarbersRobbedRecently =320;
  476. return 1;
  477. }
  478. BarbersRobbedRecently =320;
  479. RobbingBarbers[playerid] =25;
  480. IncreaseWantedLevel(playerid,4);
  481. IncreasePlayerScore(playerid,1);
  482. format(string,sizeof(string),"Robbing Barbers.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingBarbers[playerid]);
  483. ShowPlayerDialog(playerid,DIALOG_BARBERS,DIALOG_STYLE_MSGBOX,"{FF0000}Barbers Robbery",string,"Ok","Cancel");
  484.  
  485. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Barbers! Get To the Barbers and arrest the suspect.",PlayerName(playerid),playerid);
  486. SendClientMessageToAllCops(string);
  487.  
  488. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at the Barbers ..",PlayerName(playerid),playerid);
  489. SendClientMessageToAll(COLOR_RED,string);
  490.  
  491. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at the Barbers ..",PlayerName(playerid),playerid);
  492. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  493. return 1;
  494. }
  495. return 1;
  496. }
  497. if(getCheckpointType(playerid) == CP_Train)
  498. {
  499. if(zones[current_zone][zone_name] == zones[47][zone_name] || zones[current_zone][zone_name] == zones[48][zone_name])
  500. {
  501. if(TrainRobbedRecently >= 1)
  502. {
  503. SendClientMessage(playerid,COLOR_ERROR,"The Train Station has been robbed recently.");
  504. return 1;
  505. }
  506. if(RobSkill[playerid] < 20)
  507. {
  508. SendClientMessage(playerid,COLOR_ERROR,"You must have a robbing skill level of 20 to rob the Train Station. Check /robskill to see what you can rob.");
  509. return 1;
  510. }
  511. if(rrand <= 30)
  512. {
  513. SendClientMessage(playerid,COLOR_ERROR,"Train Station robbery failed.");
  514. TrainRobbedRecently =320;
  515. return 1;
  516. }
  517. TrainRobbedRecently =320;
  518. RobbingTrain[playerid] =25;
  519. IncreaseWantedLevel(playerid,4);
  520. IncreasePlayerScore(playerid,1);
  521. format(string,sizeof(string),"Robbing Train Station.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingTrain[playerid]);
  522. ShowPlayerDialog(playerid,DIALOG_TRAIN,DIALOG_STYLE_MSGBOX,"{FF0000}Train Station Robbery",string,"Ok","Cancel");
  523.  
  524. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Train Station! Get To the Train Station and arrest the suspect.",PlayerName(playerid),playerid);
  525. SendClientMessageToAllCops(string);
  526.  
  527. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at the Train Station ..",PlayerName(playerid),playerid);
  528. SendClientMessageToAll(COLOR_RED,string);
  529.  
  530. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at the Train Station ..",PlayerName(playerid),playerid);
  531. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  532. return 1;
  533. }
  534. return 1;
  535. }
  536. if(getCheckpointType(playerid) == CP_WangCars)
  537. {
  538. if(zones[current_zone][zone_name] == zones[47][zone_name] || zones[current_zone][zone_name] == zones[48][zone_name])
  539. {
  540. if(WangRobbedRecently >= 1)
  541. {
  542. SendClientMessage(playerid,COLOR_ERROR,"The Wang Cars has been robbed recently.");
  543. return 1;
  544. }
  545. if(RobSkill[playerid] < 20)
  546. {
  547. SendClientMessage(playerid,COLOR_ERROR,"You must have a robbing skill level of 20 to rob Wang Cars. Check /robskill to see what you can rob.");
  548. return 1;
  549. }
  550. if(rrand <= 30)
  551. {
  552. SendClientMessage(playerid,COLOR_ERROR,"Wang Cars robbery failed.");
  553. WangRobbedRecently =320;
  554. return 1;
  555. }
  556. WangRobbedRecently =320;
  557. RobbingWang[playerid] =25;
  558. IncreaseWantedLevel(playerid,4);
  559. IncreasePlayerScore(playerid,1);
  560. format(string,sizeof(string),"Robbing Wang Cars.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingWang[playerid]);
  561. ShowPlayerDialog(playerid,DIALOG_WANGCARS,DIALOG_STYLE_MSGBOX,"{FF0000}Wang Cars Robbery",string,"Ok","Cancel");
  562.  
  563. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Wang Cars! Get To Wang Cars and arrest the suspect.",PlayerName(playerid),playerid);
  564. SendClientMessageToAllCops(string);
  565.  
  566. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Wang Cars ..",PlayerName(playerid),playerid);
  567. SendClientMessageToAll(COLOR_RED,string);
  568.  
  569. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Wang Cars ..",PlayerName(playerid),playerid);
  570. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  571. return 1;
  572. }
  573. return 1;
  574. }
  575. if(getCheckpointType(playerid) == CP_GYM)
  576. {
  577. if(zones[current_zone][zone_name] == zones[116][zone_name] || zones[current_zone][zone_name] == zones[117][zone_name])
  578. {
  579. if(GYMRobbedRecently >= 1)
  580. {
  581. SendClientMessage(playerid,COLOR_ERROR,"The GYM has been robbed recently.");
  582. return 1;
  583. }
  584. if(rrand <= 30)
  585. {
  586. SendClientMessage(playerid,COLOR_ERROR,"GYM robbery failed.");
  587. GYMRobbedRecently =320;
  588. return 1;
  589. }
  590. GYMRobbedRecently =320;
  591. RobbingGYM[playerid] =25;
  592. IncreaseWantedLevel(playerid,4);
  593. IncreasePlayerScore(playerid,1);
  594. format(string,sizeof(string),"Robbing GYM.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingGYM[playerid]);
  595. ShowPlayerDialog(playerid,DIALOG_GYM,DIALOG_STYLE_MSGBOX,"{FF0000}GYM Robbery",string,"Ok","Cancel");
  596.  
  597. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the GYM! Get to the GYM and arrest the suspect.",PlayerName(playerid),playerid);
  598. SendClientMessageToAllCops(string);
  599.  
  600. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at the GYM ..",PlayerName(playerid),playerid);
  601. SendClientMessageToAll(COLOR_RED,string);
  602.  
  603. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at the GYM ..",PlayerName(playerid),playerid);
  604. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  605. return 1;
  606. }
  607. return 1;
  608. }
  609. if(getCheckpointType(playerid) == CP_School)
  610. {
  611. if(zones[current_zone][zone_name] == zones[47][zone_name] || zones[current_zone][zone_name] == zones[48][zone_name])
  612. {
  613. if(SchoolRobbedRecently >= 1)
  614. {
  615. SendClientMessage(playerid,COLOR_ERROR,"The Driving School has been robbed recently.");
  616. return 1;
  617. }
  618. if(rrand <= 30)
  619. {
  620. SendClientMessage(playerid,COLOR_ERROR,"Driving School robbery failed.");
  621. SchoolRobbedRecently =320;
  622. return 1;
  623. }
  624. SchoolRobbedRecently =320;
  625. RobbingSchool[playerid] =25;
  626. IncreaseWantedLevel(playerid,4);
  627. IncreasePlayerScore(playerid,1);
  628. format(string,sizeof(string),"Robbing Driving School.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingSchool[playerid]);
  629. ShowPlayerDialog(playerid,DIALOG_SCHOOL,DIALOG_STYLE_MSGBOX,"{FF0000}Driving School Robbery",string,"Ok","Cancel");
  630.  
  631. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Driving School! Get to the Driving School and arrest the suspect.",PlayerName(playerid),playerid);
  632. SendClientMessageToAllCops(string);
  633.  
  634. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at the Driving School ..",PlayerName(playerid),playerid);
  635. SendClientMessageToAll(COLOR_RED,string);
  636.  
  637. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at the Driving School ..",PlayerName(playerid),playerid);
  638. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  639. return 1;
  640. }
  641. return 1;
  642. }
  643. if(getCheckpointType(playerid) == CP_GayDarMain)
  644. {
  645. if(zones[current_zone][zone_name] == zones[258][zone_name] || zones[current_zone][zone_name] == zones[259][zone_name] ||
  646. zones[current_zone][zone_name] == zones[260][zone_name])
  647. {
  648. if(GayDarRobbedRecently >= 1)
  649. {
  650. SendClientMessage(playerid,COLOR_ERROR,"Gay Dar Station has been robbed recently.");
  651. return 1;
  652. }
  653. if(rrand <= 30)
  654. {
  655. SendClientMessage(playerid,COLOR_ERROR,"Gay Dar Station robbery failed.");
  656. GayDarRobbedRecently =320;
  657. return 1;
  658. }
  659. GayDarRobbedRecently =320;
  660. RobbingGayDar[playerid] =25;
  661. IncreaseWantedLevel(playerid,4);
  662. IncreasePlayerScore(playerid,1);
  663. format(string,sizeof(string),"Robbing Gay Dar Station.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingGayDar[playerid]);
  664. ShowPlayerDialog(playerid,DIALOG_GAYDAR,DIALOG_STYLE_MSGBOX,"{FF0000}Gay Dar Station Robbery",string,"Ok","Cancel");
  665.  
  666. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob Gay Dar Station! Get To Gay Dar Station and arrest the suspect.",PlayerName(playerid),playerid);
  667. SendClientMessageToAllCops(string);
  668.  
  669. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Gay Dar Station ..",PlayerName(playerid),playerid);
  670. SendClientMessageToAll(COLOR_RED,string);
  671.  
  672. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Gay Dar Station ..",PlayerName(playerid),playerid);
  673. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  674. return 1;
  675. }
  676. return 1;
  677. }
  678. if(getCheckpointType(playerid) == CP_ZeroMain)
  679. {
  680. if(zones[current_zone][zone_name] == zones[116][zone_name] || zones[current_zone][zone_name] == zones[117][zone_name])
  681. {
  682. if(ZeroRobbedRecently >= 1)
  683. {
  684. SendClientMessage(playerid,COLOR_ERROR,"Zero's has been robbed recently.");
  685. return 1;
  686. }
  687. if(rrand <= 30)
  688. {
  689. SendClientMessage(playerid,COLOR_ERROR,"Zero's robbery failed.");
  690. ZeroRobbedRecently =320;
  691. return 1;
  692. }
  693. ZeroRobbedRecently =320;
  694. RobbingZero[playerid] =25;
  695. IncreaseWantedLevel(playerid,4);
  696. IncreasePlayerScore(playerid,1);
  697. format(string,sizeof(string),"Robbing Zero's.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingZero[playerid]);
  698. ShowPlayerDialog(playerid,DIALOG_ZERO,DIALOG_STYLE_MSGBOX,"{FF0000}Zero's Robbery",string,"Ok","Cancel");
  699.  
  700. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob Zero's! Get To Zero's and arrest the suspect.",PlayerName(playerid),playerid);
  701. SendClientMessageToAllCops(string);
  702.  
  703. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Zero's ..",PlayerName(playerid),playerid);
  704. SendClientMessageToAll(COLOR_RED,string);
  705.  
  706. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Zero's ..",PlayerName(playerid),playerid);
  707. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  708. return 1;
  709. }
  710. return 1;
  711. }
  712. if(getCheckpointType(playerid) == CP_MistysMain)
  713. {
  714. if(zones[current_zone][zone_name] == zones[116][zone_name] || zones[current_zone][zone_name] == zones[117][zone_name])
  715. {
  716. if(MistysRobbedRecently >= 1)
  717. {
  718. SendClientMessage(playerid,COLOR_ERROR,"Misty's has been robbed recently.");
  719. return 1;
  720. }
  721. if(rrand <= 30)
  722. {
  723. SendClientMessage(playerid,COLOR_ERROR,"Misty's robbery failed.");
  724. MistysRobbedRecently =320;
  725. return 1;
  726. }
  727. MistysRobbedRecently =320;
  728. RobbingMistys[playerid] =25;
  729. IncreaseWantedLevel(playerid,4);
  730. IncreasePlayerScore(playerid,1);
  731. format(string,sizeof(string),"Robbing Misty's.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingMistys[playerid]);
  732. ShowPlayerDialog(playerid,DIALOG_MISTYS,DIALOG_STYLE_MSGBOX,"{FF0000}Misty's Robbery",string,"Ok","Cancel");
  733.  
  734. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob Misty's! Get To Misty's and arrest the suspect.",PlayerName(playerid),playerid);
  735. SendClientMessageToAllCops(string);
  736.  
  737. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Misty's ..",PlayerName(playerid),playerid);
  738. SendClientMessageToAll(COLOR_RED,string);
  739.  
  740. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Misty's ..",PlayerName(playerid),playerid);
  741. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  742. return 1;
  743. }
  744. return 1;
  745. }
  746. if(getCheckpointType(playerid) == CP_CluckinBellMain)
  747. {
  748. if(zones[current_zone][zone_name] == zones[241][zone_name] || zones[current_zone][zone_name] == zones[242][zone_name] ||
  749. zones[current_zone][zone_name] == zones[243][zone_name])
  750. {
  751. if(OceanCluckinBellRobbedRecently >= 1)
  752. {
  753. SendClientMessage(playerid,COLOR_ERROR,"The Ocean Flats Cluckin Bell has been robbed recently.");
  754. return 1;
  755. }
  756. if(rrand <= 30)
  757. {
  758. SendClientMessage(playerid,COLOR_ERROR,"Ocean Flats Cluckin Bell robbery failed.");
  759. OceanCluckinBellRobbedRecently =320;
  760. return 1;
  761. }
  762. OceanCluckinBellRobbedRecently =320;
  763. RobbingOceanCluckinBell[playerid] =25;
  764. IncreaseWantedLevel(playerid,4);
  765. IncreasePlayerScore(playerid,1);
  766. format(string,sizeof(string),"Robbing Cluckin Bell.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingOceanCluckinBell[playerid]);
  767. ShowPlayerDialog(playerid,DIALOG_CLUCKINBELL,DIALOG_STYLE_MSGBOX,"{FF0000}Cluckin Bell Robbery",string,"Ok","Cancel");
  768.  
  769. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Ocean Flats Cluckin Bell! Get To Cluckin Bell and arrest the suspect.",PlayerName(playerid),playerid);
  770. SendClientMessageToAllCops(string);
  771.  
  772. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Cluckin Bell ..",PlayerName(playerid),playerid);
  773. SendClientMessageToAll(COLOR_RED,string);
  774.  
  775. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Cluckin Bell ..",PlayerName(playerid),playerid);
  776. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  777. return 1;
  778. }
  779. if(zones[current_zone][zone_name] == zones[49][zone_name] || zones[current_zone][zone_name] == zones[50][zone_name] ||
  780. zones[current_zone][zone_name] == zones[51][zone_name] || zones[current_zone][zone_name] == zones[52][zone_name] ||
  781. zones[current_zone][zone_name] == zones[53][zone_name] || zones[current_zone][zone_name] == zones[54][zone_name])
  782. {
  783. if(DownCluckinBellRobbedRecently >= 1)
  784. {
  785. SendClientMessage(playerid,COLOR_ERROR,"The Downtown Cluckin Bell has been robbed recently.");
  786. return 1;
  787. }
  788. if(rrand <= 30)
  789. {
  790. SendClientMessage(playerid,COLOR_ERROR,"Downtown Cluckin Bell robbery failed.");
  791. DownCluckinBellRobbedRecently =320;
  792. return 1;
  793. }
  794. DownCluckinBellRobbedRecently =320;
  795. RobbingDownCluckinBell[playerid] =25;
  796. IncreaseWantedLevel(playerid,4);
  797. IncreasePlayerScore(playerid,1);
  798. format(string,sizeof(string),"Robbing Cluckin Bell.\nFinish Robbery in: %d seconds.\nPolice are on the way.",RobbingOceanCluckinBell[playerid]);
  799. ShowPlayerDialog(playerid,DIALOG_CLUCKINBELL,DIALOG_STYLE_MSGBOX,"{FF0000}Cluckin Bell Robbery",string,"Ok","Cancel");
  800.  
  801. format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Downtown Cluckin Bell! Get To Cluckin Bell and arrest the suspect.",PlayerName(playerid),playerid);
  802. SendClientMessageToAllCops(string);
  803.  
  804. format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Cluckin Bell ..",PlayerName(playerid),playerid);
  805. SendClientMessageToAll(COLOR_RED,string);
  806.  
  807. format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Cluckin Bell ..",PlayerName(playerid),playerid);
  808. IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
  809. return 1;
  810. }
  811. return 1;
  812. }
  813. return 1;
  814. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement