Advertisement
Guest User

Untitled

a guest
Apr 26th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.72 KB | None | 0 0
  1. if((dialogid == TOYS) && response)
  2. {
  3. if(listitem == 0)
  4. {
  5. new stringg[512];
  6. for(new x;x<MAX_PLAYERTOYS;x++)
  7. {
  8. new name[24];
  9. format(name, sizeof(name), "None");
  10.  
  11. for(new i;i<sizeof(HoldingObjectsAll);i++)
  12. {
  13. if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
  14. {
  15. format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
  16. }
  17. }
  18. for(new i;i<sizeof(HoldingObjectsShop);i++)
  19. {
  20. if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
  21. {
  22. format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
  23. }
  24. }
  25. format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
  26. }
  27. ShowPlayerDialogEx(playerid, WEARTOY, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Select", "Cancel");
  28. }
  29. else if(listitem == 1)
  30. {
  31. new stringg[512];
  32. for(new x;x<MAX_PLAYERTOYS;x++)
  33. {
  34. new name[24];
  35. format(name, sizeof(name), "None");
  36.  
  37. for(new i;i<sizeof(HoldingObjectsAll);i++)
  38. {
  39. if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
  40. {
  41. format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
  42. }
  43. }
  44. for(new i;i<sizeof(HoldingObjectsShop);i++)
  45. {
  46. if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
  47. {
  48. format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
  49. }
  50. }
  51. format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
  52. }
  53. ShowPlayerDialogEx(playerid, EDITTOYS, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Select", "Cancel");
  54. }
  55. else if(listitem == 2)
  56. {
  57. new stringg[512];
  58. for(new x;x<MAX_PLAYERTOYS;x++)
  59. {
  60. new name[24];
  61. format(name, sizeof(name), "None");
  62.  
  63. for(new i;i<sizeof(HoldingObjectsAll);i++)
  64. {
  65. if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
  66. {
  67. format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
  68. }
  69. }
  70. for(new i;i<sizeof(HoldingObjectsShop);i++)
  71. {
  72. if(HoldingObjectsShop[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
  73. {
  74. format(name, sizeof(name), "%s", HoldingObjectsShop[i][holdingmodelname]);
  75. }
  76. }
  77. format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
  78. }
  79. ShowPlayerDialogEx(playerid, DELETETOY, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Delete", "Cancel");
  80. }
  81. }
  82.  
  83. if((dialogid == EDITTOYS) && response)
  84. {
  85. if(PlayerToyInfo[playerid][listitem][ptModelID] == 0)
  86. {
  87. ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Toy Menu: Edit", "Woops! You don't have anything on that slot", "OK", "");
  88. }
  89. else
  90. {
  91. SendClientMessage(playerid, COLOR_WHITE, "{AA3333}HINT:{FFFF00} Position your camera differently to better see where your editing.");
  92. slotselection[playerid] = listitem;
  93. ShowEditMenu(playerid);
  94. }
  95. }
  96. if((dialogid == EDITTOYS2))
  97. {
  98. if(response)
  99. {
  100. if(listitem == 0)
  101. {
  102. ShowPlayerDialogEx(playerid, EDITTOYSBONE, DIALOG_STYLE_LIST, "Select a Bone", "Spine\nHead\nLeft upper arm\nRight upper arm\nLeft hand\nRight hand\nLeft thigh\nRight thigh\nLeft foot\nRight foot\nRight calf\nLeft calf\nLeft forearm\nRight forearm\nLeft clavicle\nRight clavicle\nNeck\nJaw", "Select", "Cancel");
  103. }
  104. else if(listitem == 1)
  105. {
  106. SendClientMessage(playerid, COLOR_WHITE, "{AA3333}HINT:{FFFF00} Hold your Space Bar to move the camera,Press ESC to cancel the editor");
  107. EditAttachedObject(playerid, slotselection[playerid]);
  108. }
  109. }
  110. else
  111. {
  112. new stringg[512];
  113. for(new x;x<MAX_PLAYERTOYS;x++)
  114. {
  115. new name[24];
  116. format(name, sizeof(name), "None");
  117.  
  118. for(new i;i<sizeof(HoldingObjectsAll);i++)
  119. {
  120. if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
  121. {
  122. format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
  123. }
  124. }
  125.  
  126. format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
  127. }
  128. ShowPlayerDialogEx(playerid, EDITTOYS, DIALOG_STYLE_LIST, "Select a Toy", stringg, "Select", "Cancel");
  129. }
  130. }
  131. if(dialogid == EDITTOYSBONE)
  132. {
  133. if(response)
  134. {
  135. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = listitem+1;
  136. }
  137. ShowEditMenu(playerid);
  138. }
  139. if((dialogid == WEARTOY) && response)
  140. {
  141. if(PlayerToyInfo[playerid][listitem][ptModelID] == 0)
  142. {
  143. ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Toy Menu: Attach/Deattach", "Woops! You don't have anything to put on from that slot", "OK", "");
  144. }
  145. else
  146. {
  147. if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
  148. {
  149. new name[24];
  150. format(name, sizeof(name), "None");
  151.  
  152. for(new i;i<sizeof(HoldingObjectsAll);i++)
  153. {
  154. if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][listitem][ptModelID])
  155. {
  156. format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
  157. }
  158. }
  159. format(string, sizeof(string), "Successfully dettached %s (Bone: %s) (Slot: %d)", name, HoldingBones[PlayerToyInfo[playerid][listitem][ptBone]], listitem);
  160. SendClientMessage(playerid, COLOR_RED, string);
  161. RemovePlayerAttachedObject(playerid, listitem);
  162. }
  163. else
  164. {
  165. if(listitem == 5 && PlayerInfo[playerid][pDonator] < 1) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Pearl VIP+ Donator to use that slot!");
  166. if(listitem == 6 && PlayerInfo[playerid][pDonator] < 2) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Emerald VIP+ Donator to use that slot!");
  167. if(listitem == 7 && PlayerInfo[playerid][pDonator] < 3) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Diamond VIP+ Donator to use that slot!");
  168.  
  169. if(PlayerToyInfo[playerid][listitem][ptScaleX] == 0) {
  170. PlayerToyInfo[playerid][listitem][ptScaleX] = 1.0;
  171. PlayerToyInfo[playerid][listitem][ptScaleY] = 1.0;
  172. PlayerToyInfo[playerid][listitem][ptScaleZ] = 1.0;
  173. }
  174. SetPlayerAttachedObject(playerid, listitem, PlayerToyInfo[playerid][listitem][ptModelID], PlayerToyInfo[playerid][listitem][ptBone], PlayerToyInfo[playerid][listitem][ptPosX], PlayerToyInfo[playerid][listitem][ptPosY], PlayerToyInfo[playerid][listitem][ptPosZ],
  175. PlayerToyInfo[playerid][listitem][ptRotX], PlayerToyInfo[playerid][listitem][ptRotY], PlayerToyInfo[playerid][listitem][ptRotZ], PlayerToyInfo[playerid][listitem][ptScaleX], PlayerToyInfo[playerid][listitem][ptScaleY], PlayerToyInfo[playerid][listitem][ptScaleZ]);
  176. new name[24];
  177. format(name, sizeof(name), "None");
  178.  
  179. for(new i;i<sizeof(HoldingObjectsAll);i++)
  180. {
  181. if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][listitem][ptModelID])
  182. {
  183. format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
  184. }
  185. }
  186. format(string, sizeof(string), "Successfully attached %s (Bone: %s) (Slot: %d)", name, HoldingBones[PlayerToyInfo[playerid][listitem][ptBone]], listitem);
  187. SendClientMessage(playerid, COLOR_RED, string);
  188. }
  189. }
  190. }
  191.  
  192. if((dialogid == DELETETOY) && response)
  193. {
  194. PlayerToyInfo[playerid][listitem][ptModelID] = 0;
  195. PlayerToyInfo[playerid][listitem][ptBone] = 0;
  196. PlayerToyInfo[playerid][listitem][ptPosX] = 0.0;
  197. PlayerToyInfo[playerid][listitem][ptPosY] = 0.0;
  198. PlayerToyInfo[playerid][listitem][ptPosZ] = 0.0;
  199. PlayerToyInfo[playerid][listitem][ptPosX] = 0.0;
  200. PlayerToyInfo[playerid][listitem][ptPosY] = 0.0;
  201. PlayerToyInfo[playerid][listitem][ptPosZ] = 0.0;
  202. if(IsPlayerAttachedObjectSlotUsed(playerid, listitem))
  203. {
  204. RemovePlayerAttachedObject(playerid, listitem);
  205. }
  206. format(string, sizeof(string), "You have deleted your toy in slot %d", listitem);
  207. ShowPlayerDialogEx(playerid, 0, DIALOG_STYLE_MSGBOX, "Toy Menu", string, "OK", "");
  208. }
  209. if((dialogid == BUYTOYSCOP) && response)
  210. {
  211. new stringg[512];
  212. for(new x;x<MAX_PLAYERTOYS;x++)
  213. {
  214. new name[24] = "None";
  215.  
  216. for(new i;i<sizeof(HoldingObjectsAll);i++)
  217. {
  218. if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
  219. {
  220. format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
  221. }
  222. }
  223.  
  224. format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
  225. }
  226. ShowPlayerDialogEx(playerid, BUYTOYSCOP2, DIALOG_STYLE_LIST, "Select a Slot", stringg, "Select", "Cancel");
  227. }
  228.  
  229. if((dialogid == BUYTOYSCOP2) && response)
  230. {
  231. // (TEMPORARY - ZHAO NOTE) NO VIP added yet
  232. /*if(listitem >= 3 && PlayerInfo[playerid][pDonator] < 1 || listitem >= 3 && PlayerInfo[playerid][pGarage] == 1) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Pearl VIP + to use that slot!");
  233. if(listitem >= 4 && PlayerInfo[playerid][pDonator] < 2) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Emerald VIP + to use that slot!");
  234. if(listitem >= 5 && PlayerInfo[playerid][pDonator] < 3) return SendClientMessage(playerid, COLOR_WHITE, "* You must be a Diamond VIP + to use that slot!");
  235. if(PlayerToyInfo[playerid][listitem][ptModelID] != 0) return SendClientMessage(playerid, COLOR_YELLOW, "* You already have something in that slot. Delete it with /toys");*/
  236.  
  237. slotselection[playerid] = listitem;
  238.  
  239. new stringg[1024];
  240. for(new x;x<sizeof(HoldingObjectsCop);x++)
  241. {
  242. format(stringg, sizeof(stringg), "%s%s ($%d)\n", stringg, HoldingObjectsCop[x][holdingmodelname], HoldingObjectsCop[x][holdingprice]);
  243. }
  244. ShowPlayerDialogEx(playerid, BUYTOYSCOP3, DIALOG_STYLE_LIST, "Select an Item", stringg, "Buy", "Cancel");
  245. }
  246. if((dialogid == BUYTOYSCOP3) && response)
  247. {
  248. if(GetPlayerCash(playerid) < HoldingObjectsCop[listitem][holdingprice])
  249. {
  250. SendClientMessage(playerid, COLOR_WHITE, "* You can't afford that!");
  251. }
  252. else
  253. {
  254. GivePlayerCash(playerid, -HoldingObjectsCop[listitem][holdingprice]);
  255. PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] = HoldingObjectsCop[listitem][holdingmodelid];
  256.  
  257. new modelid = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID];
  258. if((modelid >= 19006 && modelid <= 19035) || (modelid >= 19138 && modelid <= 19140))
  259. {
  260. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  261. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.9;
  262. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  263. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.35;
  264. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
  265. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 90.0;
  266. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  267. }
  268. else if(modelid >= 18891 && modelid <= 18910)
  269. {
  270. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  271. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.15;
  272. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  273. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  274. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
  275. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
  276. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
  277. }
  278. else if(modelid >= 18926 && modelid <= 18935)
  279. {
  280. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  281. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
  282. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  283. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  284. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
  285. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
  286. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  287. }
  288. else if(modelid >= 18911 && modelid <= 18920)
  289. {
  290. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  291. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
  292. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.035;
  293. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  294. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
  295. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
  296. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
  297. }
  298. else if(modelid == 19078 || modelid == 19078)
  299. {
  300. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 16;
  301. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
  302. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
  303. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
  304. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 180.0;
  305. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
  306. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  307. }
  308. else if((modelid >= 18641 && modelid <= 18644) || (modelid >= 19080 && modelid <= 19084) || modelid == 18890)
  309. {
  310. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 6;
  311. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
  312. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  313. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  314. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
  315. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
  316. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  317. }
  318. else
  319. {
  320. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  321. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
  322. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  323. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  324. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
  325. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
  326. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  327. }
  328. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
  329. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
  330. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
  331.  
  332. format(string, sizeof(string), "* You have purchased %s for $%d (Slot: %d)", HoldingObjectsCop[listitem][holdingmodelname], HoldingObjectsCop[listitem][holdingprice], slotselection[playerid]);
  333. SendClientMessage(playerid, COLOR_RED, string);
  334. SendClientMessage(playerid, COLOR_WHITE, "HINT: Use /toys to wear/edit this");
  335. }
  336. }
  337.  
  338. if((dialogid == BUYTOYSGOLD) && response)
  339. {
  340. if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Emerald VIP +");
  341. new stringg[512];
  342. for(new x;x<MAX_PLAYERTOYS;x++)
  343. {
  344. new name[24] = "None";
  345.  
  346. for(new i;i<sizeof(HoldingObjectsAll);i++)
  347. {
  348. if(HoldingObjectsAll[i][holdingmodelid] == PlayerToyInfo[playerid][x][ptModelID])
  349. {
  350. format(name, sizeof(name), "%s", HoldingObjectsAll[i][holdingmodelname]);
  351. }
  352. }
  353.  
  354. format(stringg, sizeof(stringg), "%s(%d) %s (Bone: %s)\n", stringg, x, name, HoldingBones[PlayerToyInfo[playerid][x][ptBone]]);
  355. }
  356. ShowPlayerDialogEx(playerid, BUYTOYSGOLD2, DIALOG_STYLE_LIST, "Select a Slot", stringg, "Select", "Cancel");
  357. }
  358.  
  359. if((dialogid == BUYTOYSGOLD2) && response)
  360. {
  361. if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Emerald VIP +");
  362.  
  363. if(PlayerToyInfo[playerid][listitem][ptModelID] != 0) return SendClientMessageEx(playerid, COLOR_YELLOW, "* You already have something in that slot. Delete it with /toys");
  364.  
  365. slotselection[playerid] = listitem;
  366.  
  367. new stringg[5256];
  368. for(new x;x<sizeof(HoldingObjectsAll);x++)
  369. {
  370. format(stringg, sizeof(stringg), "%s%s ($%d)\n", stringg, HoldingObjectsAll[x][holdingmodelname], HoldingObjectsAll[x][holdingprice]);
  371. }
  372. ShowPlayerDialogEx(playerid, BUYTOYSGOLD3, DIALOG_STYLE_LIST, "Select an Item", stringg, "Buy", "Cancel");
  373. }
  374. if((dialogid == BUYTOYSGOLD3) && response)
  375. {
  376. if(PlayerInfo[playerid][pDonator] < 2) return SendClientMessageEx(playerid, COLOR_WHITE, "* You must be a Emerald VIP +");
  377.  
  378. if(GetPlayerCash(playerid) < HoldingObjects[listitem][holdingprice])
  379. {
  380. SendClientMessageEx(playerid, COLOR_WHITE, "* You can't afford that!");
  381. }
  382. else
  383. {
  384. GivePlayerCash(playerid, -HoldingObjectsAll[listitem][holdingprice]);
  385. PlayerToyInfo[playerid][slotselection[playerid]][ptModelID] = HoldingObjectsAll[listitem][holdingmodelid];
  386.  
  387. new modelid = PlayerToyInfo[playerid][slotselection[playerid]][ptModelID];
  388. if((modelid >= 19006 && modelid <= 19035) || (modelid >= 19138 && modelid <= 19140))
  389. {
  390. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  391. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.9;
  392. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  393. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.35;
  394. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
  395. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 90.0;
  396. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  397. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
  398. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
  399. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
  400. }
  401. else if(modelid >= 18891 && modelid <= 18910)
  402. {
  403. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  404. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.15;
  405. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  406. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  407. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
  408. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
  409. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
  410. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
  411. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
  412. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
  413. }
  414. else if(modelid >= 18926 && modelid <= 18935)
  415. {
  416. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  417. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
  418. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  419. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  420. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
  421. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
  422. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  423. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
  424. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
  425. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
  426. }
  427. else if(modelid >= 18911 && modelid <= 18920)
  428. {
  429. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  430. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.1;
  431. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.035;
  432. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  433. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 90.0;
  434. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
  435. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 90.0;
  436. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
  437. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
  438. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
  439. }
  440. else if(modelid == 19078 || modelid == 19078)
  441. {
  442. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 16;
  443. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0;
  444. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0;
  445. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0;
  446. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 180.0;
  447. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 180.0;
  448. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  449. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
  450. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
  451. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
  452. }
  453. else if((modelid >= 18641 && modelid <= 18644) || (modelid >= 19080 && modelid <= 19084) || modelid == 18890)
  454. {
  455. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 6;
  456. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
  457. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  458. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  459. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
  460. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
  461. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  462. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
  463. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
  464. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
  465. }
  466. else
  467. {
  468. PlayerToyInfo[playerid][slotselection[playerid]][ptBone] = 2;
  469. PlayerToyInfo[playerid][slotselection[playerid]][ptPosX] = 0.0;
  470. PlayerToyInfo[playerid][slotselection[playerid]][ptPosY] = 0.0;
  471. PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ] = 0.0;
  472. PlayerToyInfo[playerid][slotselection[playerid]][ptRotX] = 0.0;
  473. PlayerToyInfo[playerid][slotselection[playerid]][ptRotY] = 0.0;
  474. PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ] = 0.0;
  475. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
  476. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
  477. PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
  478. }
  479.  
  480. format(string, sizeof(string), "* You have purchased %s for $%d (Slot: %d)", HoldingObjectsAll[listitem][holdingmodelname], HoldingObjectsAll[listitem][holdingprice], slotselection[playerid]);
  481. SendClientMessageEx(playerid, COLOR_RED, string);
  482. SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /toys to wear/edit this");
  483. }
  484. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement