NealPeteros

Supreme Roleplay 2.0 Changelog

Dec 12th, 2017
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.64 KB | None | 0 0
  1. Different Business Types:
  2.  
  3.  
  4. switch(BusinessInfo[id2][bType])
  5. {
  6. case 25: biztext = "Betting Shop";
  7. case 24: biztext = "Advertisement Center";
  8. case 23: biztext = "Furniture Shop";
  9. case 22: biztext = "Garage";
  10. case 21: biztext = "Apartment Complex";
  11. case 20: biztext = "Dealership";
  12. case 19: biztext = "Electronic Store";
  13. case 18: biztext = "Ammu-Nation";
  14. case 17: biztext = "Gym";
  15. case 16: biztext = "Hotel";
  16. case 15: biztext = "Motel";
  17. case 14: biztext = "Diner";
  18. case 13: biztext = "Tattoo Shop";
  19. case 12: biztext = "Barbershop";
  20. case 11: biztext = "Flower Store";
  21. case 10: biztext = "98 Cents";
  22. case 9: biztext = "69 Cents";
  23. case 8: biztext = "Liqour Store";
  24. case 7: biztext = "Restaurant";
  25. case 6: biztext = "Bank";
  26. case 5: biztext = "Hospital";
  27. case 4: biztext = "Police Station";
  28. case 3: biztext = "24/7";
  29. case 2: biztext = "Club";
  30. case 1: biztext = "Bar";
  31. case 0: biztext = "Clothes Shop";
  32. }
  33.  
  34.  
  35.  
  36. Trucker Job:
  37.  
  38.  
  39.  
  40.  
  41. SCM(playerid, COLOR_GREY,"[Usage:] /trucker [order/info/orders/take_order/deliver/place/cancel].");
  42.  
  43.  
  44. Factories for truckers to order their products
  45.  
  46.  
  47. static const TruckingZones[][TruckInfo] = {
  48.  
  49. /*Wood Producers*/
  50. {"Leafy Hollow Woods\n"COLORORANGE"Producing Wood\n"COL_WHITE"Use [/trucker order] to order wood from the factory and [/trucker info] to list information", {-1107.1235,-1620.4291,76.3672}, 1},
  51. {"Whetstone's Wood Forest\n"COLORORANGE"Producing Wood\n"COL_WHITE"Use [/trucker order] to order wood from the factory and [/trucker info] to list information", {-1422.5691,-1502.0198,101.6719}, 1},
  52. {"Woods of North Rock\n"COLORORANGE"Producing Wood\n"COL_WHITE"Use [/trucker order] to order wood from the factory and [/trucker info] to list information", {2354.8870,-648.6005,128.0397}, 1},
  53.  
  54. /*Oilfields*/
  55. {"Verdant Meadows Oilfield\n"COLORYELLOW"Producing Oil\n"COL_WHITE"Use [/trucker order] to order oil from the factory and [/trucker info] to list information", {384.9622,2602.6160,16.4844}, 2},
  56.  
  57. /*Mine Quarrys*/
  58. {"Whetstone Quarry\n"COL_BROWN"Producing Coal\n"COL_WHITE"Use [/trucker order] to order coal/ore from the factory and [/trucker info] to list information", {-1829.4500,-1634.9768,21.7500}, 3},
  59. {"Hunter Quarry\n"COL_BROWN"Producing Coal\n"COL_WHITE"Use [/trucker order] to order coal/ore from the factory and [/trucker info] to list information", {585.6367,871.5690,-42.4973}, 3},
  60.  
  61. /*Steel Refinery*/
  62. {"Fallen Tree Steel Refinery\n"COLORGREY"Producing Steel\nRequiring Coal\n"COL_WHITE"Use [/trucker order] to order steel from the factory and [/trucker info] to list information", {-481.3151,-541.5077,25.5296}, 4, {3}},
  63.  
  64. /*Plastic Factory*/
  65. {"Blueberry Plastics\n"COL_SILVER"Producing Plastic\nRequiring Oil, Wood\n"COL_WHITE"Use [/trucker order] to order plastic from the factory and [/trucker info] to list information", {-22.3179,-278.7772,5.4297}, 5, {1,2}},
  66.  
  67. /*Chemical Factory*/
  68. {"Easter Bay Chemicals\n"DARKGREEN"Producing Chemicals\nRequiring Oil, Wood, Coal\n"COL_WHITE"Use [/trucker order] to order chemicals from the factory and [/trucker info] to list information", {-993.7693,-700.3590,32.0078}, 6, {1,2,3}},
  69.  
  70. /*Weapon Parts*/
  71. {"Red County Weapon Parts\n"COLORORANGE"Producing Weapon Parts\nRequiring Steel, Wood\n"COL_WHITE"Use [/trucker order] to order weapon parts from the factory and [/trucker info] to list information", {1932.0310,147.2223,37.2813}, 7, {1,4}},
  72.  
  73. /*Car Parts*/
  74. {"Ocean Docks Car Parts\n"COL_BROWN"Producing Car Parts\nRequiring Steel, Wood, Plastic\n"COL_WHITE"Use [/trucker order] to order car parts from the factory and [/trucker info] to list information", {2406.8755,-2477.0288,13.6312}, 8, {1,4,5}},
  75.  
  76. /*Fuel Refineries*/
  77. {"Willowfield Fuel Refineries\n"DARKORANGE"Producing Petroleum\nRequiring Oil, Chemicals\n"COL_WHITE"Use [/trucker order] to order petroleum from the factory and [/trucker info] to list information", {2648.3835,-2098.4714,13.5469}, 9, {2,6}},
  78.  
  79. /*Electricity Manufactures*/
  80. {"Mount Chiliad Electricity\n"COLORYELLOW"Producing Electronic Parts\nRequiring Steel, Plastic, Chemicals\n"COL_WHITE"Use [/trucker order] to order petroleum from the factory and [/trucker info] to list information", {-2324.4265,-1619.0321,485.2487}, 10, {4,5,6}},
  81.  
  82. /*Weapon Factories*/
  83. {"Ammu-Nation Weapons\n"COLORGREY"Producing Weapons\nRequiring Weapon Parts\n"COL_WHITE"Use [/trucker order] to order petroleum from the factory and [/trucker info] to list information", {1420.0073,-1355.2379,13.5638}, 11, {7}},
  84.  
  85. /*Vehicle Factories*/
  86. {"Rodeo's Vehicle Factories\n"COL_SILVER"Producing Vehicles\nRequiring Car Parts, Plastic, Electronic Parts\n"COL_WHITE"Use [/trucker order] to order petroleum from the factory and [/trucker info] to list information", {516.1822,-1301.2560,17.2422}, 12, {5,8,10}},
  87.  
  88. /*Furniture Manufactures*/
  89. {"Blueberry Acres Furnitures\n"COL_BROWN"Producing Furnitures\nRequiring Wood, Steel, Plastic\n"COL_WHITE"Use [/trucker order] to order furniture from the factory and [/trucker info] to list information", {-90.0501,-10.0915,3.1094}, 13, {1,4,5}},
  90.  
  91. /*Grocery Producers*/
  92. {"Inlet Groceries\n"COLORGREY"Producing Groceries\nRequiring Wood, Plastic, Chemicals\n"COL_WHITE"Use [/trucker order] to order groceries from the factory and [trucker info] to list information", {-287.9317,-2163.8730,28.6314}, 14, {1,5,6}}
  93.  
  94. };
  95.  
  96.  
  97. Scripted Penal Code for the Government
  98.  
  99.  
  100. static const crimesList[][]=
  101. {
  102. "01. Crimes against the person",
  103. "02. Crimes against property and criminal profiteering",
  104. "03. Crimes against public decency",
  105. "04. Crimes against public justice",
  106. "05. Crimes against public peace",
  107. "06. Crimes against the public administration",
  108. "07. Crimes against the minors or animals",
  109. "08. Crimes related to vehicles",
  110. "09. Crimes against public health and safety",
  111. "10. Traffic Offenses"
  112. };
  113.  
  114. static const crimesPerson[][] =
  115. {
  116. "01. Intimidation",
  117. "02. Physical Aggression",
  118. "03. Assault with a deadly weapon",
  119. "04. Injuries",
  120. "05. Fatal Injuries",
  121. "06. Attempted Murder",
  122. "07. Manslaughter",
  123. "08. Homicide",
  124. "09. Kidnapping",
  125. "10. Abduction",
  126. "11. Torture"
  127. };
  128.  
  129. static const crimesProperty[][] =
  130. {
  131. "01. Arson",
  132. "02. Burglary",
  133. "03. Extortion",
  134. "04. False impersonation",
  135. "05. Counterfeiting",
  136. "06. Fraud",
  137. "07. Theft",
  138. "08. Vehicle Theft",
  139. "09. Firearm Theft",
  140. "10. Pickpocketing",
  141. "11. Possession of burglary tools",
  142. "12. Appropriation of stolen goods",
  143. "13. Robbery",
  144. "14. Armed robbery",
  145. "15. Domestic Violation",
  146. "16. Military perimeter violation",
  147. "17. Vandalism"
  148. };
  149.  
  150.  
  151. static const crimesPublicDecency[][] =
  152. {
  153. "01. Indecent attitude",
  154. "02. Obscene behavior in public",
  155. "03. Pimping / Prostitution",
  156. "04. Rape",
  157. "05. Sexual Aggression",
  158. "06. Sexual Outrage",
  159. "07. Stalking",
  160. "08. Vigilantism"
  161. };
  162.  
  163. static const crimesPublicJustice[][] =
  164. {
  165. "01. Corruption",
  166. "02. Contempt of court",
  167. "03. Insulting a public official",
  168. "04. Deterrence",
  169. "05. Resisting arrest by a court",
  170. "06. Failure to pay a penalty",
  171. "07. False testimony",
  172. "08. Failure to comply",
  173. "09. Smuggling",
  174. "10. Abuse of the emergency line",
  175. "11. Resisting a public official ",
  176. "12. Obstruction",
  177. "13. Tampering with evidence",
  178. "14. Violation of the restrictive measure",
  179. "15. Not following the imposition of a court",
  180. "16. Election Fraud",
  181. "17. Bribery of a public official",
  182. "18. Bribery of a public office",
  183. "19. Aggravated abuse of an emergency line",
  184. "20. First Degree Evasion",
  185. "21. Second Degree Evasion",
  186. "21. False Copyright Claims & Harassment"
  187. };
  188.  
  189. static const crimesPublicPeace[][] =
  190. {
  191. "01. Disturbing the peace",
  192. "02. Uprising hate",
  193. "03. Unauthorized Manifestations",
  194. "04. Incitement to vandalism"
  195. };
  196.  
  197. static const crimesPublicAdministration[][] =
  198. {
  199. "01. Staying in a place for disturbance purposes",
  200. "02. Production of drugs",
  201. "03. Possession of drugs",
  202. "04. Distribution of drugs",
  203. "05. Terrorism"
  204. };
  205.  
  206. static const crimesAgainstMinororAnimal[][] =
  207. {
  208. "01. Animal abuse / cruelty",
  209. "02. Child Abuse",
  210. "03. Irresponsible conduct against a child",
  211. "04. Distributions of drugs to a minor",
  212. "05. Use of alcohol by a minor"
  213. };
  214.  
  215. static const crimesCarRelated[][] =
  216. {
  217. "01. Extraction of weapon fire from a vehicle",
  218. "02. Extraction of weapon fire in public",
  219. "03. Unlicensed Driving",
  220. "04. Resisting a public official",
  221. "05. Unlicensed Aircraft Hovering",
  222. "06. Accident with failure to rescue",
  223. "07. Accident with private rescue aid failure",
  224. "08. Dangerous driving with a plane",
  225. "09. Non-compliance with ATC protocols",
  226. "10. Resistance exploiting a plane"
  227. };
  228.  
  229. static const crimesPublicSecurity[][] =
  230. {
  231. "01. Possession of an illegal knife",
  232. "02. Possession of a firearm without a license",
  233. "03. Production of firearm",
  234. "04. Possession of an illegal firearm",
  235. "05. Weapon Assault",
  236. "06. Possession of excessive ammunition",
  237. "07. Possession of explosive devices intended for sale",
  238. "08. Possession of explosive devices"
  239. };
  240.  
  241. static const crimesTrafficOffenses[][] =
  242. {
  243. "01. Speeding",
  244. "02. Illegal parking",
  245. "03. Reckless driving",
  246. "04. Driving in the wrong lane",
  247. "05. Illegal Racing",
  248. "06. Violation of traffic rules",
  249. "07. Driving with vehicle objectionable material circulation",
  250. "08. Driving without seatbelt / light devices",
  251. "09. Vehicular Endangerment"
  252. };
  253.  
  254.  
  255. /damages system
  256.  
  257.  
  258. #define BODY_PART_TORSO 3
  259. #define BODY_PART_GROIN 4
  260. #define BODY_PART_RIGHT_ARM 5
  261. #define BODY_PART_LEFT_ARM 6
  262. #define BODY_PART_RIGHT_LEG 7
  263. #define BODY_PART_LEFT_LEG 8
  264. #define BODY_PART_HEAD 9
  265.  
  266.  
  267. Faction types system
  268.  
  269.  
  270. #define FACTION_TYPE_LAW (1) //LSPD
  271. #define FACTION_TYPE_MEDIC (2) //LSFMD
  272. #define FACTION_TYPE_NEWS (3) //SAN
  273. #define FACTION_TYPE_GOV (4) //SAGOV
  274. #define FACTION_TYPE_ILL (5) //Illegal Factions
  275. #define FACTION_TYPE_COMP (6) //Companies
  276.  
  277.  
  278. Custom passenger interiors
  279.  
  280.  
  281. #define AmbulanceInt 2003.3,2284.2,1011.1
  282. //#define AT400Int -2584.3625,1066.2448,2534.2139
  283. #define EnforcerInt 1384.0756,-2245.3730,3006.4163
  284. #define JourneyInt -1503.2544,2512.0527,3207.6506
  285. #define RaindanceInt -765.6840,1596.6407,3002.6099
  286. #define BusInt 2021.7991,2235.4919,2103.9536
  287. #define LimousineInt 2147.5132,-1515.0826,420.6283
  288.  
  289.  
  290. Multiple drugs with different effects
  291.  
  292.  
  293. CMD:takedrug(playerid, params[])
  294. {
  295. new
  296. give[24], amount, string[128];
  297.  
  298. new hworld = GetPlayerVirtualWorld(playerid);
  299. new house = PlayerInfo[playerid][HouseID];
  300.  
  301. if(sscanf(params, "s[24]d", give, amount)) return SendClientMessage(playerid, COLOR_GREY, "[SERVER:] /takedrug (lsd, marijuana, cocaine, meth, ecstasy) [amount]");
  302. if(house == 0) return SCM(playerid, COLOR_LIGHTRED, "You don't own any house.");
  303. for(new h = 1; h < sizeof(HouseInfo); h++)
  304. {
  305. if(hworld == HouseInfo[h][hInsideWorld])
  306. {
  307. if(house == HouseInfo[h][hInsideWorld])
  308. {
  309. if(!strcmp(give, "lsd", true))
  310. {
  311. if (amount > HouseInfo[h][hLSD]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much LSD in your house.");
  312.  
  313. HouseInfo[h][hLSD] -= amount;
  314. PlayerInfo[playerid][dLSD] += amount;
  315. format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
  316. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  317. new string2[128];
  318. format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
  319. SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
  320. format(string, sizeof(string), "You have taken %dg of LSD from your house.", amount);
  321. SendClientMessage(playerid, COLOR_WHITE, string);
  322. }
  323. else if(!strcmp(give, "marijuana", true))
  324. {
  325. if (amount > HouseInfo[h][hMarijuana]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much marijuana in your house.");
  326.  
  327. HouseInfo[h][hMarijuana] -= amount;
  328. PlayerInfo[playerid][dMarijuana] += amount;
  329. format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
  330. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  331. new string2[128];
  332. format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
  333. SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
  334. format(string, sizeof(string), "You have taken %dg of marijuana from your house.", amount);
  335. SendClientMessage(playerid, COLOR_WHITE, string);
  336. }
  337. else if(!strcmp(give, "cocaine", true))
  338. {
  339. if (amount > HouseInfo[h][hCocaine]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much cocaine in your house.");
  340.  
  341. HouseInfo[h][hCocaine] -= amount;
  342. PlayerInfo[playerid][dCocaine] += amount;
  343. format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
  344. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  345. new string2[128];
  346. format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
  347. SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
  348. format(string, sizeof(string), "You have taken %dg of cocaine from your house.", amount);
  349. SendClientMessage(playerid, COLOR_WHITE, string);
  350. }
  351. else if(!strcmp(give, "meth", true))
  352. {
  353. if (amount > HouseInfo[h][hMeth]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much meth in your house.");
  354.  
  355. HouseInfo[h][hMeth] -= amount;
  356. PlayerInfo[playerid][dMeth] += amount;
  357. format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
  358. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  359. new string2[128];
  360. format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
  361. SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
  362. format(string, sizeof(string), "You have taken %dg of meth from your house.", amount);
  363. SendClientMessage(playerid, COLOR_WHITE, string);
  364. }
  365. else if(!strcmp(give, "ecstasy", true))
  366. {
  367. if (amount > HouseInfo[h][hEcstasy]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much LSD in your house.");
  368.  
  369. HouseInfo[h][hEcstasy] -= amount;
  370. PlayerInfo[playerid][dEcstasy] += amount;
  371. format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
  372. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  373. new string2[128];
  374. format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
  375. SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
  376. format(string, sizeof(string), "You have taken %dg of ecstasy from your house.", amount);
  377. SendClientMessage(playerid, COLOR_WHITE, string);
  378. }
  379. else if(!strcmp(give, "heroin", true))
  380. {
  381. if (amount > HouseInfo[h][hHeroin]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much meth in your house.");
  382.  
  383. HouseInfo[h][hHeroin] -= amount;
  384. PlayerInfo[playerid][dHeroin] += amount;
  385. format(string, sizeof(string), "%s takes syringes from the house vault.", GetName(playerid));
  386. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  387. new string2[128];
  388. format(string2, sizeof(string2), "* %s takes syringes from the house vault.", GetName(playerid));
  389. SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
  390. format(string, sizeof(string), "You have taken %dg of heroin from your house.", amount);
  391. SendClientMessage(playerid, COLOR_WHITE, string);
  392. }
  393. else if(!strcmp(give, "crack", true))
  394. {
  395. if (amount > HouseInfo[h][hCrack]) return SendClientMessage(playerid, COLOR_LIGHTRED, "You do not have that much LSD in your house.");
  396.  
  397. HouseInfo[h][hCrack] -= amount;
  398. PlayerInfo[playerid][dCrack] += amount;
  399. format(string, sizeof(string), "%s takes a baggie from the house vault.", GetName(playerid));
  400. ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  401. new string2[128];
  402. format(string2, sizeof(string2), "* %s takes a baggie from the house vault.", GetName(playerid));
  403. SetPlayerChatBubble(playerid, string2, COLOR_PURPLE, 100.0, 10000);
  404. format(string, sizeof(string), "You have taken %dg of ecstasy from your house.", amount);
  405. SendClientMessage(playerid, COLOR_WHITE, string);
  406. }
  407. }
  408. }
  409. }
  410. return 1;
  411. }
  412.  
  413.  
  414. Holster System
  415.  
  416. switch(oldweapontype)
  417. {
  418. case WEAPON_TYPE_LIGHT:
  419. SetPlayerAttachedObject(playerid, 0,modelid, 8,0.0,-0.1,0.15, -100.0, 0.0, 0.0);
  420.  
  421. case WEAPON_TYPE_MELEE:
  422. SetPlayerAttachedObject(playerid, 0,modelid, 7,0.0,0.0,-0.18, 100.0, 45.0, 0.0);
  423.  
  424. case WEAPON_TYPE_HEAVY:
  425. SetPlayerAttachedObject(playerid, 0,modelid, 1, 0.2,-0.125,-0.1,0.0,25.0,180.0);
  426. }
  427.  
  428.  
  429.  
  430. Corpse System
  431.  
  432. format(string, sizeof(string), "((Corpse: %s))", cActor[i][cName]);
  433.  
  434. format(string2, sizeof(string2), ""COL_GREEN"Identification Card"COL_WHITE" %s\n", cActor[i][cName]);
  435. strcat(holder, string2, sizeof(holder));
  436. format(string2, sizeof(string2), ""COL_GREEN"Money:"COL_WHITE" $%d\n\n", cActor[i][cMoney]);
  437. strcat(holder, string2, sizeof(holder));
  438. format(string2, sizeof(string2), ""COL_GREEN"LSD:"COL_WHITE" %dg\n", cActor[i][cLSD]);
  439. strcat(holder, string2, sizeof(holder));
  440.  
  441. format(string2, sizeof(string2), ""COL_GREEN"Cocaine:"COL_WHITE" %dg\n", cActor[i][cCocaine]);
  442. strcat(holder, string2, sizeof(holder));
  443.  
  444. format(string2, sizeof(string2), ""COL_GREEN"Marijuana:"COL_WHITE" %dg\n", cActor[i][cMarijuana]);
  445. strcat(holder, string2, sizeof(holder));
  446.  
  447. format(string2, sizeof(string2), ""COL_GREEN"Methamphetamine:"COL_WHITE" %dg\n", cActor[i][cMeth]);
  448. strcat(holder, string2, sizeof(holder));
  449.  
  450. format(string2, sizeof(string2), ""COL_GREEN"Ecstasy:"COL_WHITE" %dg\n", cActor[i][cEcstasy]);
  451. strcat(holder, string2, sizeof(holder));
  452. format(string2, sizeof(string2), ""COL_GREEN"Heroin:"COL_WHITE" %dg\n", cActor[i][cHeroin]);
  453. strcat(holder, string2, sizeof(holder));
  454.  
  455. format(string2, sizeof(string2), ""COL_GREEN"Crack:"COL_WHITE" %dg\n", cActor[i][cCrack]);
  456. strcat(holder, string2, sizeof(holder));
  457.  
  458.  
  459. Earthquake System
  460.  
  461. CMD:startquake(playerid, params[])
  462. {
  463. if(quakemagnitude == 0.0) return SendClientMessage(playerid, COLOR_GREY, "Quake magnitude isn't set. Use /quakemagnitude to set it");
  464. new Float:Pos[3];
  465.  
  466. GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  467. PlayAudioStreamForPlayer(playerid, "http://k61.offliberty.com/6Wc7QH55qKU.mp3");
  468.  
  469. SetPlayerDrunkLevel(playerid, 5001);
  470.  
  471. playerPrevPos[playerid][0] = Pos[0];
  472. playerPrevPos[playerid][1] = Pos[1];
  473. playerPrevPos[playerid][2] = Pos[2];
  474.  
  475. isQuaking = true;
  476.  
  477. for(new i; i<MAX_PLAYERS; i++)
  478. {
  479. SetPlayerVelocity(i, 0.0, 0.0, 0.05);
  480. playerQuakeTimer[i] = SetTimerEx("EarthquakeEffect", 500, true, "i", i);
  481. playerSirenTimer[i] = SetTimerEx("SirenExpire", 45000, true, "i", i);
  482. playerFlipTimer[i] = SetTimerEx("FlipTimer", 5000, true, "i", i);
  483. }
  484. return 1;
  485. }
  486.  
  487.  
  488. Celebrity System
  489.  
  490.  
  491. CMD:sign(playerid, params[])
  492. {
  493. new giveplayerid, string[120];
  494. if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, -1, "/sign [playerid]");
  495. if(giveplayerid == playerid)
  496. {
  497. SendClientMessage(playerid, COLOR_GREY, " You cant use that command on yourself!");
  498. return 1;
  499. }
  500. if(IsPlayerConnected(giveplayerid))
  501. {
  502. if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
  503. {
  504. SendClientMessage(playerid, COLOR_GREY, "You are not on foot!");
  505. return 1;
  506. }
  507. if(giveplayerid != INVALID_PLAYER_ID)
  508. {
  509. /* if(giveplayerid == playerid)
  510. {
  511. SendClientMessage(playerid, COLOR_GREY, "You cant use this command on yourself!");
  512. return 1;
  513. }*/
  514. if (ProxDetectorS(5.0, playerid, giveplayerid))
  515. {
  516. if(PlayerInfo[giveplayerid][pStarsP] <= 49)
  517. {
  518. SendClientMessage(playerid, COLOR_GREY, "That player isnt a celebrity!");
  519. return 1;
  520. }
  521. format(string, sizeof(string),"* {FFFFFF}Your request has been sent to {33CCFF}%s.",GetName(giveplayerid));
  522. SendClientMessage(playerid, COLOR_ORANGE, string);
  523. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, ":::::::::::::::::::::::::::::::::::::::::::::::");
  524. format(string, sizeof(string),"* {33CCFF}%s {FFFFFF}wants an autograph from you.",GetName(playerid));
  525. SendClientMessage(giveplayerid, COLOR_ORANGE, string);
  526. SendClientMessage(giveplayerid, COLOR_ORANGE, "{33CCFF}/signaccept{FFFFFF}to accept, otherwise {33CCFF}/signdeny");
  527. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, ":::::::::::::::::::::::::::::::::::::::::::::::");
  528. pendingsign[giveplayerid] = playerid;
  529. SetTimerEx("Signoffertimer", 10000, false, "i", giveplayerid);
  530. }
  531. else
  532. {
  533. SendClientMessage(playerid, COLOR_GREY, "You're not close enough to the player");
  534. return 1;
  535. }
  536. }
  537. }
  538. return 1;
  539. }
  540.  
  541.  
  542. Drop gun system
  543.  
  544.  
  545. CMD:dropgun(playerid, params[])
  546. {
  547. new
  548. world = GetPlayerVirtualWorld(playerid), interior = GetPlayerInterior(playerid);
  549. if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return 1;
  550. new GunID = GetPlayerWeapon(playerid);
  551. new GunAmmo = GetPlayerAmmo(playerid);
  552. if(GunID > 0 && GunAmmo != 0)
  553. {
  554. new f = MAX_OBJ+1;
  555. for(new a = 0; a < MAX_OBJ; a++)
  556. {
  557. if(dGunData[a][ObjPos][0] == 0.0)
  558. {
  559. f = a;
  560. break;
  561. }
  562. }
  563. if(f > MAX_OBJ) return SendClientMessage(playerid, COLOR_LIGHTRED, "You can not drop your gun at the moment. (max limit exceeded)");
  564. RemovePlayerWeapon(playerid, GunID);
  565. dGunData[f][ObjData][0] = GunID;
  566. dGunData[f][ObjData][1] = GunAmmo;
  567.  
  568. dGunData[f][ObjInt] = interior;
  569. dGunData[f][ObjWorld] = world;
  570.  
  571. GetPlayerPos(playerid, dGunData[f][ObjPos][0], dGunData[f][ObjPos][1], dGunData[f][ObjPos][2]);
  572. dGunData[f][ObjID] = CreateDynamicObject(GunObjects[GunID], dGunData[f][ObjPos][0], dGunData[f][ObjPos][1], dGunData[f][ObjPos][2]-1, 93.7, 120.0, 120.0, world, interior, -1, 200.0, 0.0);
  573. new buffer[50];
  574. format(buffer, sizeof(buffer), "You threw your %s on the ground.", GunNames[dGunData[f][ObjData][0]]);
  575. SendClientMessage(playerid, -1, buffer);
  576.  
  577. // Logging bans
  578. new dropgunstring[256];
  579.  
  580. new Hour, Minute, Second;
  581. gettime(Hour, Minute, Second);
  582.  
  583. format(dropgunstring, sizeof(dropgunstring), "[%d:%d:%d] %s threw his %s on the ground.", Hour, Minute, Second, GetName(playerid), GunNames[dGunData[f][ObjData][0]]);
  584. DropGunLog(dropgunstring);
  585. // -------------------------------------------------------
  586. }
  587. return 1;
  588. }
  589.  
  590. Detective System
  591.  
  592. CMD:attachwiretape(playerid, params[])
  593. {
  594. if(PlayerInfo[playerid][pJob] == Detective)
  595. {
  596. new id, string[360], Float:X, Float:Y, Float:Z;
  597. if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /attachwiretape [playerid/partofname]");
  598.  
  599. if(id == playerid) {
  600. SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself.");
  601. }
  602. else if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z)) {
  603. SendClientMessage(playerid, COLOR_GREY, "Target is too far.");
  604. }
  605. else if(!IsPlayerConnected(id)) {
  606. SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
  607. }
  608. else if(wiretapeattached[playerid] == 1) {
  609. SendClientMessage(playerid, COLOR_GREY, "You have already attached your maximum wiretapes on someone else");
  610. }
  611. else if(wiretapeattachedon[playerid] == id) {
  612. SendClientMessage(playerid, COLOR_GREY, "You already have a wiretape attached on the same person");
  613. }
  614. format(string, sizeof(string), "You have attached a wiretape on %s. You are now hearing everything they say.", GetName(id));
  615. SendClientMessage(playerid, COLOR_GRAD2, string);
  616. wiretapeattached[playerid] = 1;
  617. wiretapeattachedon[playerid] = id;
  618. haswiretapeattached[id] = 1;
  619. }
  620. else {
  621. SendClientMessage(playerid, COLOR_GREY, "You're not a detective.");
  622. }
  623. return 1;
  624. }
  625.  
  626. CMD:rcvehicle(playerid, params[])
  627. {
  628. if(PlayerInfo[playerid][pJob] == Detective)
  629. {
  630. new vid, Float: fVehPos[4];
  631. if(sscanf(params, "i", vid)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /rcvehicle [vehicle]");
  632.  
  633. if(hasrcveh[playerid] == 1) {
  634. SendClientMessage(playerid, COLOR_GREY, "You have already spawned an RC vehicle. /controlrc to control it.");
  635. }
  636.  
  637. if(vid == 441 || vid == 464 || vid == 465 || vid == 501 || vid == 564 || vid == 594)
  638. {
  639. hasrcveh[playerid] = 1;
  640. GetPlayerPos(playerid, fVehPos[0], fVehPos[1], fVehPos[2]);
  641. GetPlayerFacingAngle(playerid, fVehPos[3]);
  642. rcvid[playerid] = CreateVehicle(vid, fVehPos[0], fVehPos[1], fVehPos[2], fVehPos[3], 0, 0, -1, 1);
  643. SendClientMessage(playerid, COLOR_GREY, "You have spawned an RC vehicle.");
  644. }
  645. else return SendClientMessage(playerid, COLOR_GREY, "Vehicle must be a valid RC vehicle[441, 464, 465, 501, 564, 594]");
  646. }
  647. else {
  648. SendClientMessage(playerid, COLOR_GREY, "You're not a detective.");
  649. }
  650. return 1;
  651. }
  652.  
  653.  
  654. Examine System (emotions, appearance, weight, height, sickness, etc)
  655.  
  656.  
  657. CMD:examine(playerid, params[])
  658. {
  659. new string[1024], szTitle[MAX_PLAYER_NAME+9], targetid, pemotion[64], pmakeup[64], peyecolor[64], pweight[64], pheight[64], phair[64], phaircolor[64], pclothes[64];
  660. if(sscanf(params, "u", targetid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /examine [player]");
  661. if(!IsPlayerConnected(targetid)) return SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
  662. if(!ProxDetectorS(8.0, playerid, targetid)) return SendClientMessage(playerid, COLOR_GREY, "That player isn't near you.");
  663. format(szTitle, sizeof(szTitle), "{FFD700}%s", GetPlayerNameEx(targetid));
  664. SendClientMessageEx(playerid, COLOR_WHITE, szTitle);
  665. format(pemotion,sizeof(pemotion),"Appears to be in a {FFD700}%s mood", PlayerLooks[targetid][pEmotion]);
  666. SendClientMessageEx(playerid, COLOR_WHITE, pemotion);
  667. format(pmakeup,sizeof(pmakeup),"Is wearing {FFD700}%s on them", PlayerLooks[targetid][pMakeup]);
  668. SendClientMessageEx(playerid, COLOR_WHITE, pmakeup);
  669. format(peyecolor,sizeof(peyecolor),"Their eyes appear to be {FFD700}%s", PlayerLooks[targetid][pEyeColor]);
  670. SendClientMessageEx(playerid, COLOR_WHITE, peyecolor);
  671. format(pheight, sizeof(pheight), "They're {FFD700}%s ft tall", PlayerLooks[targetid][pHeight]);
  672. SendClientMessageEx(playerid, COLOR_WHITE, pheight);
  673. format(phair,sizeof(phair),"Their hair is {FFD700}%s", PlayerLooks[targetid][pHair]);
  674. SendClientMessageEx(playerid, COLOR_WHITE, phair);
  675. format(phaircolor,sizeof(phaircolor),"The colour of their hair is {FFD700}%s", PlayerLooks[targetid][pHairColor]);
  676. SendClientMessageEx(playerid, COLOR_WHITE, phaircolor);
  677. format(pclothes,sizeof(pclothes),"They appear to be wearing {FFD700}%s", PlayerLooks[targetid][pCStyle]);
  678. SendClientMessageEx(playerid, COLOR_WHITE, pclothes);
  679. if(PlayerInfo[targetid][pDrunk] == 5)
  680. {
  681. SendClientMessage(playerid, COLOR_YELLOW, "This player is also drunk!");
  682. }
  683. if(PlayerStoned[targetid] > 3)
  684. {
  685. SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "This player is also high!");
  686. }
  687. if(PlayerLooks[targetid][pWeight] > 40)
  688. {
  689. SendClientMessage(playerid, COLOR_YELLOW, "This player is overweight!");
  690. }
  691. if(PlayerLooks[targetid][pWeight] < 40)
  692. {
  693. SendClientMessage(playerid, COLOR_YELLOW, "This player is in normal shape!");
  694. }
  695. if(PlayerLooks[targetid][pWeight] == 40)
  696. {
  697. SendClientMessage(playerid, COLOR_YELLOW, "This player is in normal shape!");
  698. }
  699. if(PlayerInfo[targetid][pMuscles] > 40)
  700. {
  701. SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "This player appears to be muscular");
  702. }
  703. if(PlayerInfo[targetid][pMuscles] == 40)
  704. {
  705. SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "This player appears to be muscular");
  706. }
  707. if(PlayerInfo[targetid][pMuscles] < 40)
  708. {
  709. SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "This player appears to be weak");
  710. }
  711. if(PlayerInfo[targetid][pHyge] > 50)
  712. {
  713. SendClientMessage(playerid, COLOR_WHITE, "This player smells good!");
  714. }
  715. if(PlayerInfo[targetid][pHyge] == 50)
  716. {
  717. SendClientMessage(playerid, COLOR_WHITE, "This player smells good!");
  718. }
  719. if(PlayerInfo[targetid][pHyge] < 50)
  720. {
  721. SendClientMessage(playerid, COLOR_WHITE, "This player smells bad!");
  722. }
  723. if(PlayerInfo[targetid][pHunger] == 20)
  724. {
  725. SendClientMessage(playerid, COLOR_RED, "This player is hungry!");
  726. }
  727. if(PlayerInfo[targetid][pHunger] < 20)
  728. {
  729. SendClientMessage(playerid, COLOR_RED, "This player is hungry!");
  730. }
  731. if(PlayerInfo[targetid][pCold] == 1)
  732. {
  733. SendClientMessage(playerid, COLOR_NG, "This player is sick!");
  734. }
  735. if(PlayerInfo[targetid][pPreg] > 0)
  736. {
  737. SendClientMessage(playerid, COLOR_PINK, "This player is pregnant!");
  738. }
  739. return 1;
  740. }
  741.  
  742.  
  743. Baby System
  744.  
  745.  
  746. pBabyPiss,
  747. pBabyDiperUsed,
  748. pBabyDiper,
  749. pBabyCrib,
  750. pBabyCare,
  751. pBabySleep,
  752. pBabyBladder,
  753. pChildSupport,
  754. pBabyHunger,
  755. pBBaby,
  756. pBabyCar,
  757. pBabySeat,
  758. pCarryBaby,
  759. pLaborDays,
  760. pBaby,
  761.  
  762.  
  763. Books System
  764.  
  765.  
  766. pDetectiveBook,
  767. pLawyerBook,
  768. pWhoreBook,
  769. pDrugDealerBook,
  770. pTruckerBook,
  771. pArmsDealerBook,
Advertisement
Add Comment
Please, Sign In to add comment