Advertisement
Xaviour212

Ulric Backcaps/Hat system v2

Mar 23rd, 2012
1,601
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 51.68 KB | None | 0 0
  1. /*=========================Credits to :=========================================
  2. //  Xaviour212 for make this FilterScript
  3. //  CyNiC for coordinates for skin
  4. //=========================CHANGE LOG===========================================
  5. //  Added in v2:
  6. //      - New command /buycaps
  7. //      - New Command /buybackcaps
  8. //      - Added save system
  9. */
  10.  
  11.  
  12. #include <a_samp>
  13. #include <zcmd>
  14. #include <sscanf2>
  15. #include <dini>
  16.  
  17. #define COLOR_LIGHTBLUE                 0x33CCFFAA
  18. #define COLOR_GREEN1                    0x33AA33AA
  19. #define COLOR_RED                       0xFF0000AA
  20.  
  21. #define BUY_CAPS 0 //make 1 for enable buy caps in store
  22. #define SAVE_CAPS 0 //Save a caps
  23. #define CAPS_PRICE 200 //price of a caps
  24. #define CAPS_FILE "Caps" // "scriptfiles/......"
  25. #define SLOT 0 //Slot
  26.  
  27. #define UseHat[MAX_PLAYERS] = 0;
  28.  
  29. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  30. forward IsAtClothesShop(playerid);
  31. forward UseCaps(playerid, capsid);
  32. forward UnUseCaps(playerid);
  33. forward UseBackCaps(playerid, backcid);
  34.  
  35. static Float: SkinCaps[299][6] = {
  36. {0.135928, 0.002891, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 0
  37. {0.136207, 0.006102, -0.013858, 0.612963, 0.000000, 0.000000}, //Skin - 1
  38. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                 //Skin - 2
  39. {0.167425, -0.006185, -0.004779, 0.612963, 0.000000, 0.000000}, //Skin - 3
  40. {0.188546, -0.006185, -0.011507, 0.612963, 0.000000, 0.000000}, //Skin - 4
  41. {0.188546, -0.006185, -0.011507, 0.612963, 0.000000, 0.000000}, //Skin - 5
  42. {0.155785, 0.005998, -0.014326, 0.000000, 0.000000, 347.188201},//Skin - 6
  43. {0.157787, 0.012994, -0.014590, 0.612963, 0.000000, 0.000000},  //Skin - 7
  44. {0.131067, -0.013737, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 8
  45. {0.118922, -0.015322, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 9
  46. {0.125779, -0.001459, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 10
  47. {0.129249, -0.014101, -0.008518, 0.000000, 0.000000, 347.188201},//Skin - 11
  48. {0.139572, -0.003642, -0.002145, 0.612963, 0.000000, 10.335063}, //Skin - 12
  49. {0.161076, -0.015624, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 13
  50. {0.112204, -0.023196, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 14
  51. {0.104552, -0.015122, -0.005275, 0.612963, 2.307199, 357.920410}, //Skin - 15
  52. {0.150166, -0.008718, -0.006768, 0.000000, 0.000000, 347.188201},//Skin - 16
  53. {0.149627, 0.002943, -0.005275, 0.612963, 2.307199, 357.920410}, //Skin - 17
  54. {0.105319, 0.003517, -0.005275, 0.612963, 2.307199, 357.920410}, //Skin - 18
  55. {0.153609, -0.003207, -0.007717, 0.000000, 0.000000, 357.608825},//Skin - 19
  56. {0.143831, 0.001813, -0.010588, 0.000000, 0.000000, 357.608825}, //Skin - 20
  57. {0.154598, -0.003549, -0.013304, 0.000000, 0.000000, 0.000000},  //Skin - 21
  58. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 22
  59. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                   //Skin - 23
  60. {0.127352, 0.009877, -0.006845, 0.726156, 359.666778, 348.825012},//Skin - 24
  61. {0.124666, -0.029373, -0.006845, 0.726156, 359.666778, 329.940704},//Skin - 25
  62. {0.152029, -0.018331, -0.003139, 0.000000, 358.344604, 348.467559}, //Skin - 26
  63. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                    //Skin - 27
  64. {0.128768, 0.041474, -0.007667, 0.726156, 359.666778, 355.429199}, //Skin - 28
  65. {0.166457, -0.006228, -0.012669, 0.726156, 359.666778, 354.612152},//Skin - 29
  66. {0.155160, -0.022985, -0.011249, 0.000000, 358.344604, 348.467559}, //Skin - 30
  67. {0.096077, -0.023233, -0.009101, 0.726156, 359.666778, 343.094055},//Skin - 31
  68. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                    //Skin - 32
  69. {0.094003, -0.022985, -0.011249, 0.000000, 358.344604, 348.467559}, //Skin - 33
  70. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                    //Skin - 34
  71. {0.155565, 0.014400, -0.009101, 0.726156, 359.666778, 6.131487},   //Skin - 35
  72. {0.156485, 0.013641, -0.009101, 0.726156, 359.666778, 6.131487},   //Skin - 36
  73. {0.144815, 0.013641, -0.009374, 0.726156, 359.666778, 350.562103}, //Skin - 37
  74. {0.113347, -0.006682, -0.009374, 0.726156, 359.666778, 350.562103},//Skin - 38
  75. {0.147231, -0.014448, -0.004786, 0.726156, 359.666778, 357.303253},//Skin - 39
  76. {0.133873, -0.019703, -0.000058, 0.000000, 358.344604, 348.467559},//Skin - 40
  77. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                    //Skin - 41
  78. {0.082446, 0.004202, -0.004786, 0.726156, 359.666778, 357.303253}, //Skin - 42
  79. {0.104901, 0.004013, -0.004786, 0.726156, 359.666778, 342.983184}, //Skin - 43
  80. {0.116172, -0.001954, -0.004786, 0.726156, 359.666778, 357.100677},//Skin - 44
  81. {0.153321, 0.025744, -0.008666, 0.726156, 359.666778, 10.704365},  //Skin - 45
  82. {0.160556, 0.007781, -0.010438, 0.726156, 359.666778, 0.991972},   //Skin - 46
  83. {0.179010, -0.035613, -0.010438, 0.726156, 359.666778, 347.956573},//Skin - 47
  84. {0.123363, 0.008694, -0.010438, 0.726156, 359.666778, 347.956573}, //Skin - 48
  85. {0.167061, -0.037899, -0.010438, 0.726156, 359.666778, 347.775817},//Skin - 49
  86. {0.164100, -0.040816, -0.011624, 357.030151, 358.344604, 342.811187},//Skin - 50
  87. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                    //Skin - 51
  88. {0.129040, 0.016069, -0.010438, 0.726156, 359.666778, 347.775817}, //Skin - 52
  89. {0.129040, 0.016069, -0.006084, 0.726156, 359.666778, 347.775817}, //Skin - 53
  90. {0.137743, -0.016369, -0.011731, 0.726156, 359.666778, 355.812011},//Skin - 54
  91. {0.137743, -0.016369, -0.011731, 0.726156, 359.666778, 355.812011},//Skin - 55
  92. {0.174539, -0.000662, -0.007289, 0.726156, 359.666778, 352.847045},//Skin - 56
  93. {0.109382, -0.002955, -0.007289, 0.726156, 359.666778, 352.847045},//Skin - 57
  94. {0.152276, -0.029331, -0.008357, 0.726156, 359.666778, 332.070648},//Skin - 58
  95. {0.129599, -0.019172, -0.012204, 0.726156, 359.666778, 332.070648},//Skin - 59
  96. {0.138485, -0.012405, -0.011567, 357.030151, 358.344604, 342.811187},//Skin - 60
  97. {0.130350, 0.000897, -0.000747, 0.726156, 359.666778, 332.070648}, //Skin - 61
  98. {0.150659, -0.035485, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 62
  99. {0.119340, -0.006483, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 63
  100. {0.110634, 0.009623, -0.011624, 357.030151, 358.344604, 342.811187},//Skin - 64
  101. {0.133055, -0.000092, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 65
  102. {0.129061, -0.006499, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 66
  103. {0.127292, 0.010318, -0.006299, 0.726156, 359.666778, 341.617431}, //Skin - 67
  104. {0.138791, -0.025311, -0.006299, 0.726156, 359.666778, 341.617431},//Skin - 68
  105. {0.148132, 0.003970, -0.002304, 0.726156, 359.666778, 340.120025}, //Skin - 69
  106. {0.129753, 0.006469, -0.006376, 0.726156, 359.666778, 354.029815}, //Skin - 70
  107. {0.125663, 0.015428, -0.006376, 0.726156, 359.666778, 354.029815}, //Skin - 71
  108. {0.125663, 0.015428, -0.009030, 0.726156, 359.666778, 354.029815}, //Skin - 72
  109. {0.117674, 0.014567, -0.011567, 357.030151, 358.344604, 342.811187}, //Skin - 73
  110. {0.135729, -0.018656, -0.013554, 0.000000, 0.000000, 337.893737},  //Skin - 74
  111. {0.141888, -0.042810, -0.006206, 0.000000, 0.000000, 337.893737},  //Skin - 75
  112. {0.134968, -0.020112, -0.003604, 357.030151, 358.344604, 342.811187},//Skin - 76
  113. {0.124348, -0.017813, -0.006206, 0.000000, 0.000000, 346.786865},  //Skin - 77
  114. {0.124348, 0.000583, -0.006206, 0.000000, 0.000000, 346.786865},   //Skin - 78
  115. {0.102654, -0.010906, -0.006206, 0.000000, 0.000000, 346.786865},  //Skin - 79
  116. {0.102654, -0.010906, -0.006206, 0.000000, 0.000000, 346.786865},  //Skin - 81
  117. {0.167928, 0.031601, -0.006206, 0.000000, 0.000000, 17.955888},    //Skin - 82
  118. {0.159998, 0.023540, -0.006206, 0.000000, 0.000000, 17.955888},    //Skin - 83
  119. {0.169630, 0.019315, -0.006206, 0.000000, 0.000000, 17.955888},    //Skin - 84
  120. {0.163052, -0.039735, -0.006206, 0.000000, 0.000000, 341.169891},  //Skin - 85
  121. {0.122285, -0.020112, -0.003604, 357.030151, 358.344604, 342.811187},//Skin - 86
  122. {0.144811, -0.007521, -0.014207, 0.000000, 0.000000, 341.169891},  //Skin - 87
  123. {0.129932, -0.007521, -0.007289, 0.000000, 0.000000, 341.169891},  //Skin - 88
  124. {0.151147, -0.038608, -0.009597, 0.000000, 0.000000, 343.694549},  //Skin - 89
  125. {0.147416, -0.031632, -0.009597, 0.000000, 0.000000, 343.694549},  //Skin - 90
  126. {0.157728, -0.009677, -0.009597, 0.000000, 0.000000, 0.934848},    //Skin - 91
  127. {0.136577, -0.015592, -0.009597, 0.000000, 0.000000, 341.013824},  //Skin - 92
  128. {0.143821, 0.000631, -0.008385, 0.000000, 0.000000, 358.808868},   //Skin - 93
  129. {0.100521, 0.003151, -0.007624, 0.000000, 0.000000, 358.808868},   //Skin - 94
  130. {0.122833, -0.006031, -0.007624, 0.000000, 0.000000, 358.808868},  //Skin - 95
  131. {0.145296, 0.003959, -0.007624, 0.000000, 0.000000, 358.808868},   //Skin - 96
  132. {0.141658, 0.016474, -0.007624, 0.000000, 0.000000, 9.683902},     //Skin - 97
  133. {0.145276, -0.002846, -0.007624, 0.000000, 0.000000, 340.239593},  //Skin - 98
  134. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                    //Skin - 99
  135. {0.161745, -0.010244, -0.007624, 0.000000, 0.000000, 351.499267}, //Skin - 100
  136. {0.151006, -0.030994, -0.005366, 0.000000, 0.000000, 340.428894}, //Skin - 101
  137. {0.147111, 0.003794, -0.012433, 0.000000, 0.000000, 358.069244},  //Skin - 102
  138. {0.154213, -0.052348, -0.003511, 356.299316, 0.000000, 336.751647},//Skin - 103
  139. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                    //Skin - 104
  140. {0.153814, -0.039614, -0.006756, 356.299316, 0.000000, 336.930084},//Skin - 105
  141. {0.153638, -0.039614, -0.013630, 356.299316, 0.000000, 336.930084},//Skin - 106
  142. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                    //Skin - 107
  143. {0.140473, -0.026201, -0.000469, 0.390689, 355.405181, 335.554260},//Skin - 108
  144. {0.140904, -0.007227, -0.008114, 0.390689, 355.405181, 335.554260},//Skin - 109
  145. {0.140904, -0.007227, -0.008114, 0.390689, 355.405181, 335.554260},//Skin - 110
  146. {0.134860, 0.001485, -0.010145, 0.390689, 358.632415, 347.730010},//Skin - 111
  147. {0.124823, 0.001485, -0.009402, 0.390689, 358.632415, 347.730010},//Skin - 112
  148. {0.157999, -0.012039, -0.006082, 0.390689, 358.632415, 347.730010},//Skin - 113
  149. {0.144906, -0.005139, -0.009654, 0.390689, 358.632415, 336.830108},//Skin - 114
  150. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                    //Skin - 116
  151. {0.152829, -0.009735, -0.009654, 0.390689, 358.632415, 336.830108},//Skin - 117
  152. {0.113804, 0.009252, -0.009654, 0.390689, 358.632415, 345.244384},//Skin - 118
  153. {0.113804, 0.009252, -0.009654, 0.390689, 358.632415, 345.244384},//Skin - 119
  154. {0.144202, -0.021273, -0.005915, 357.030151, 358.344604, 342.811187},//Skin - 120
  155. {0.154275, -0.037484, -0.009654, 0.390689, 358.632415, 337.676666},//Skin - 121
  156. {0.155674, -0.015613, -0.004339, 0.390689, 358.632415, 350.571228},//Skin - 122
  157. {0.136433, -0.019181, -0.004339, 0.390689, 358.632415, 340.261840},//Skin - 123
  158. {0.163258, -0.032386, -0.013128, 0.390689, 358.632415, 340.261840},//Skin - 124
  159. {0.153242, -0.029651, -0.002434, 0.390689, 358.632415, 333.367614},//Skin - 125
  160. {0.127978, -0.001961, -0.008867, 0.390689, 358.632415, 347.279052},//Skin - 126
  161. {0.160856, -0.025356, -0.004428, 0.390689, 358.632415, 347.279052},//Skin - 127
  162. {0.150266, -0.009032, -0.006781, 0.390689, 358.632415, 347.223754},//Skin - 128
  163. {0.158060, 0.022907, -0.006781, 0.390689, 358.632415, 349.378875},//Skin - 129
  164. {0.111739, 0.012673, -0.006781, 0.390689, 358.632415, 349.378875},//Skin - 130
  165. {0.091638, -0.011600, -0.008686, 0.390689, 358.632415, 336.674468},//Skin - 131
  166. {0.125788, 0.000635, -0.005915, 0.390689, 358.632415, 343.007751},//Skin - 132
  167. {0.031324, -0.014154, -0.005915, 0.390689, 358.632415, 343.007751},//Skin - 133
  168. {0.142321, 0.015417, -0.005915, 0.243191, 358.632415, 350.329559},//Skin - 133
  169. {0.128780, -0.030750, 0.006687, 173.184967, 358.632415, 27.422966},//Skin - 134
  170. {0.115882, -0.004931, -0.003807, 358.837646, 358.632415, 346.206237},//Skin - 135
  171. {0.127531, -0.008916, -0.003807, 358.837646, 358.632415, 346.206237},//Skin - 136
  172. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 137
  173. {0.148992, -0.017748, -0.006509, 358.837646, 358.632415, 350.742156},//Skin - 138
  174. {0.148992, -0.017748, -0.006509, 358.837646, 358.632415, 350.742156},//Skin - 139
  175. {0.147315, 0.001708, -0.006509, 358.837646, 358.632415, 354.390045},//Skin - 140
  176. {0.144315, -0.013571, -0.006509, 358.837646, 358.632415, 354.390045},//Skin - 141
  177. {0.144315, -0.002729, -0.010357, 358.837646, 358.632415, 354.390045},//Skin - 142
  178. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 143
  179. {0.177516, -0.070868, -0.009114, 358.837646, 358.632415, 331.679321},//Skin - 144
  180. {0.139578, -0.008750, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 145
  181. {0.139578, -0.014406, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 146
  182. {0.115592, -0.010754, -0.004405, 358.837646, 358.632415, 343.319335},//Skin - 147
  183. {0.150735, -0.000459, -0.004405, 358.837646, 358.632415, 9.362450},//Skin - 148
  184. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 149
  185. {0.149485, -0.008709, -0.006168, 358.837646, 358.632415, 2.276566},//Skin - 150
  186. {0.168162, -0.009708, -0.012160, 359.504821, 4.442328, 355.348114},//Skin - 151
  187. {0.156369, -0.024521, -0.012160, 359.504821, 0.415596, 355.348114},//Skin - 152
  188. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 153
  189. {0.119297, -0.016080, -0.010776, 359.504821, 0.415596, 341.522827},//Skin - 154
  190. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 155
  191. {0.172295, -0.065549, -0.007187, 359.504821, 0.415596, 336.175567},//Skin - 156
  192. {0.126340, -0.030764, -0.007187, 359.504821, 0.415596, 336.175567},//Skin - 157
  193. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 158
  194. {0.154280, 0.002166, -0.010436, 359.504821, 0.415596, 357.792144},//Skin - 159
  195. {0.121469, -0.007383, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 160
  196. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 161
  197. {0.139495, -0.007383, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 162
  198. {0.113212, -0.005302, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 163
  199. {0.120208, 0.003533, -0.010436, 359.504821, 0.415596, 341.538574},//Skin - 164
  200. {0.135111, 0.005091, -0.006407, 359.504821, 0.415596, 352.954559},//Skin - 165
  201. {0.122118, 0.005091, -0.006407, 359.504821, 0.415596, 352.954559},//Skin - 166
  202. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 167
  203. {0.125229, 0.005091, -0.013084, 359.504821, 0.415596, 352.954559},//Skin - 168
  204. {0.153451, -0.018119, -0.013276, 359.504821, 0.415596, 358.219451},//Skin - 169
  205. {0.141395, -0.009131, -0.013276, 359.504821, 0.415596, 347.866027},//Skin - 170
  206. {0.157631, -0.028753, -0.006450, 359.504821, 0.415596, 339.935516},//Skin - 171
  207. {0.152687, -0.027057, -0.007731, 359.504821, 0.415596, 344.054809},//Skin - 172
  208. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 173
  209. {0.165146, 0.015393, -0.007731, 359.504821, 0.415596, 344.001678},//Skin - 174
  210. {0.162788, -0.019696, -0.007731, 359.504821, 0.415596, 344.001678},//Skin - 175
  211. {0.157728, -0.027188, -0.012891, 359.504821, 0.415596, 345.804748},//Skin - 176
  212. {0.187507, 0.010472, -0.012891, 359.504821, 0.415596, 12.315887},//Skin - 177
  213. {0.153901, -0.027720, -0.007884, 359.504821, 0.415596, 344.553527},//Skin - 178
  214. {0.137445, -0.009757, -0.012987, 359.504821, 0.415596, 344.553527},//Skin - 179
  215. {0.173041, -0.006323, -0.012987, 359.504821, 0.415596, 3.267552},//Skin - 180
  216. {0.143467, 0.016897, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 181
  217. {0.114480, 0.006202, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 182
  218. {0.114480, 0.008813, -0.007831, 359.504821, 0.415596, 349.504974},//Skin - 183
  219. {0.128122, -0.012152, -0.013144, 359.504821, 0.415596, 336.326538},//Skin - 184
  220. {0.156171, 0.007268, -0.013144, 359.504821, 0.415596, 10.805211},//Skin - 185
  221. {0.156409, -0.034861, -0.007927, 359.504821, 0.415596, 336.978668},//Skin - 186
  222. {0.118034, -0.024105, -0.002947, 359.504821, 0.415596, 336.978668},//Skin - 187
  223. {0.128686, -0.029632, -0.002947, 358.201873, 0.415596, 329.325042},//Skin - 188
  224. {0.172639, -0.026749, -0.012705, 358.201873, 0.415596, 349.092590},//Skin - 189
  225. {0.180897, -0.026749, -0.007224, 358.201873, 0.415596, 349.092590},//Skin - 190
  226. {0.180897, -0.026749, -0.007224, 358.201873, 0.415596, 349.092590},//Skin - 191
  227. {0.178725, -0.010278, -0.007224, 358.201873, 0.415596, 354.053405},//Skin - 192
  228. {0.172020, -0.010278, -0.010734, 358.201873, 0.415596, 354.053405},//Skin - 193
  229. {0.172020, -0.010278, -0.010734, 358.201873, 0.415596, 354.053405},//Skin - 194
  230. {0.176089, -0.032526, -0.005110, 358.201873, 0.415596, 341.814422},//Skin - 195
  231. {0.118042, 0.007002, -0.005110, 358.201873, 0.415596, 341.814422},//Skin - 196
  232. {0.143840, -0.042712, -0.007556, 358.201873, 0.415596, 341.814422},//Skin - 197
  233. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 198
  234. {0.148060, -0.032384, -0.009754, 358.201873, 0.415596, 333.484924},//Skin - 199
  235. {0.148060, -0.032384, -0.009754, 358.201873, 0.415596, 333.484924},//Skin - 200
  236. {0.140799, 0.025145, -0.009754, 358.201873, 0.415596, 5.040688},//Skin - 201
  237. {0.140799, 0.015851, -0.009754, 358.201873, 0.415596, 349.796478},//Skin - 202
  238. {0.140799, -0.004372, -0.013685, 358.201873, 0.415596, 349.796478},//Skin - 203
  239. {0.154274, 0.006245, -0.013685, 358.201873, 0.415596, 2.035465},//Skin - 204
  240. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 205
  241. {0.154274, 0.016669, -0.013685, 358.201873, 0.415596, 2.035465},//Skin - 206
  242. {0.106604, 0.004805, -0.011840, 358.201873, 0.415596, 2.035465},//Skin - 207
  243. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 208
  244. {0.148378, -0.003807, -0.011840, 358.201873, 0.415596, 2.035465},//Skin - 209
  245. {0.113854, 0.001969, -0.011840, 358.201873, 0.415596, 343.826263},//Skin - 210
  246. {0.149539, -0.028623, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 211
  247. {0.104024, -0.014549, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 212
  248. {0.145820, -0.029160, -0.009621, 358.201873, 0.415596, 331.587280},//Skin - 213
  249. {0.148646, -0.008515, -0.009621, 358.201873, 0.415596, 1.360260},//Skin - 214
  250. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 215
  251. {0.148646, -0.005935, -0.004058, 358.201873, 0.415596, 1.360260},//Skin - 216
  252. {0.148646, -0.015611, -0.004058, 358.201873, 0.415596, 340.374938},//Skin - 217
  253. {0.133952, -0.030138, -0.009880, 358.201873, 0.415596, 340.374938},//Skin - 218
  254. {0.140503, -0.033425, -0.005693, 358.201873, 0.415596, 340.374938},//Skin - 219
  255. {0.114608, 0.009020, -0.009135, 358.201873, 0.415596, 352.932006},//Skin - 220
  256. {0.186516, -0.044762, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 221
  257. {0.186516, -0.044762, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 222
  258. {0.179908, -0.010779, -0.009135, 358.201873, 0.415596, 344.217132},//Skin - 223
  259. {0.156689, -0.015437, -0.009135, 358.201873, 0.415596, 352.741638},//Skin - 224
  260. {0.156689, -0.015437, -0.009135, 358.201873, 0.415596, 352.741638},//Skin - 225
  261. {0.134990, -0.034685, -0.009135, 358.201873, 0.415596, 340.812927},//Skin - 226
  262. {0.151760, 0.002680, -0.009135, 358.201873, 0.415596, 340.812927},//Skin - 227
  263. {0.167410, -0.028664, -0.009135, 358.201873, 0.415596, 340.250427},//Skin - 228
  264. {0.127699, -0.015571, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 229
  265. {0.100555, -0.007753, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 230
  266. {0.126940, 0.016886, -0.006103, 358.201873, 0.415596, 347.232238},//Skin - 231
  267. {0.132949, -0.017515, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 232
  268. {0.146124, -0.008425, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 233
  269. {0.125714, -0.021018, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 234
  270. {0.084982, -0.009809, -0.008594, 358.201873, 0.415596, 347.232238},//Skin - 235
  271. {0.114669, -0.005190, -0.008594, 358.201873, 0.415596, 351.301177},//Skin - 236
  272. {0.123264, -0.014946, -0.008594, 358.201873, 0.415596, 351.301177},//Skin - 237
  273. {0.146656, -0.023925, -0.006749, 358.201873, 0.415596, 334.356781},//Skin - 238
  274. {0.133769, -0.007373, -0.006749, 358.201873, 0.415596, 343.105895},//Skin - 239
  275. {0.165378, -0.020173, -0.005869, 358.201873, 0.415596, 348.352233},//Skin - 240
  276. {0.143331, -0.133577, -0.011472, 358.201873, 0.415596, 312.328857},//Skin - 241
  277. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 242
  278. {0.098602, 0.002084, -0.011472, 358.201873, 0.415596, 348.195495},//Skin - 243
  279. {0.124240, -0.011682, -0.006423, 358.201873, 0.415596, 341.555999},//Skin - 244
  280. {0.158155, -0.044311, -0.005439, 358.201873, 0.415596, 336.024902},//Skin - 245
  281. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 246
  282. {0.164307, -0.040974, -0.006797, 358.201873, 0.415596, 337.067047},//Skin - 247
  283. {0.191578, -0.040435, -0.010605, 358.201873, 0.415596, 340.908203},//Skin - 248
  284. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 249
  285. {0.135208, -0.015243, -0.011916, 358.201873, 0.415596, 340.908203},//Skin - 250
  286. {0.134272, -0.027377, -0.006035, 358.201873, 0.415596, 333.416168},//Skin - 251
  287. {0.158813, -0.038977, -0.006035, 358.201873, 0.415596, 336.013519},//Skin - 252
  288. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 253
  289. {0.165106, -0.048880, -0.009719, 358.201873, 0.415596, 331.050933},//Skin - 254
  290. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 255
  291. {0.142586, 0.020829, -0.008549, 358.201873, 0.415596, 2.765411},//Skin - 256
  292. {0.134018, -0.024462, -0.008549, 358.201873, 0.415596, 339.642486},//Skin - 257
  293. {0.147750, -0.042854, -0.008114, 0.951334, 0.415596, 330.441131},//Skin - 258
  294. {0.147750, -0.042854, -0.008114, 0.951334, 0.415596, 330.441131},//Skin - 259
  295. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 260
  296. {0.134710, 0.006798, -0.008114, 358.188964, 0.415596, 352.703582},//Skin - 261
  297. {0.111691, 0.006798, -0.008114, 358.188964, 0.415596, 352.703582},//Skin - 262
  298. {0.146077, -0.005195, -0.008114, 358.188964, 0.415596, 3.866970},//Skin - 263
  299. {0.135858, -0.157842, -0.008114, 358.188964, 0.415596, 314.852203},//Skin - 264
  300. {0.127964, 0.000132, -0.008114, 358.188964, 0.415596, 352.699432},//Skin - 265
  301. {0.127964, -0.002646, -0.008114, 358.188964, 0.415596, 352.699432},//Skin - 266
  302. {0.132329, -0.014261, -0.007384, 1.504234, 0.415596, 352.699432},//Skin - 267
  303. {0.145951, -0.043442, -0.010053, 1.504234, 0.415596, 320.469390},//Skin - 268
  304. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 269
  305. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 270
  306. {0.141851, -0.034538, -0.010580, 1.504234, 0.415596, 340.349456},//Skin - 271
  307. {0.136473, -0.057088, -0.008204, 1.504234, 0.415596, 318.134399},//Skin - 272
  308. {0.140332, -0.013011, -0.004432, 354.106964, 357.498840, 352.802062}, //Skin - 273
  309. {0.124270, 0.003252, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 274
  310. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 275
  311. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 276
  312. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 277
  313. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 278
  314. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 279
  315. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 280
  316. {0.131583, 0.007682, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 281
  317. {0.140515, 0.009018, -0.008204, 1.504234, 0.415596, 346.744995},//Skin - 282
  318. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 283
  319. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 284
  320. {0.189940, -0.004297, 0.001481, 354.106964, 357.498840, 352.802062},//Skin - 285
  321. {0.140515, 0.001933, -0.008204, 1.504234, 0.415596, 346.744995}, //Skin - 286
  322. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 287
  323. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 288
  324. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 289
  325. {0.128789, -0.014062, -0.007850, 1.504234, 0.415596, 340.341094},//Skin - 290
  326. {0.158929, -0.027358, -0.010655, 1.504234, 0.415596, 337.298858},//Skin - 291
  327. {0.113309, -0.012434, -0.010655, 1.504234, 0.415596, 337.298858},//Skin - 292
  328. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},                                  //Skin - 293
  329. {0.158438, -0.023891, -0.007217, 1.504234, 0.415596, 337.298858},//Skin - 294
  330. {0.145000, -0.032054, -0.007217, 1.504234, 0.415596, 336.385589},//Skin - 295
  331. {0.139293, -0.069554, -0.010619, 1.504234, 0.415596, 320.746429},//Skin - 296
  332. {0.148252, -0.066463, -0.010619, 1.504234, 0.415596, 320.729705},//Skin - 297
  333. {0.126423, -0.066463, -0.010619, 1.504234, 0.415596, 320.729705},//Skin - 298
  334. {0.144949, -0.040691, -0.008599, 1.504234, 0.415596, 320.729705}//Skin - 299
  335. };
  336.  
  337. static Float: SkinBackCaps[300][6] = {
  338. {0.152561, 0.009771, -0.003578, 0.000000, 0.000000, 0.000000}, // CapBack1 - capblack 0
  339. {0.154740, -0.000088, -0.007099, 0.000000, 0.000000, 353.034423}, // CapBack1 - 1
  340. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  341. {0.171257, -0.000811, -0.001653, 356.842010, 357.498840, 350.228424}, // CapBack1 - 3
  342. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  343. {0.184302, -0.008025, -0.003483, 356.842010, 357.498840, 350.228424}, // CapBack1 - 5
  344. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  345. {0.171452, 0.020331, -0.009405, 0.000000, 0.000000, 0.328186}, // CapBack1 - 7
  346. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  347. {0.165115, -0.006727, -0.005117, 0.000000, 0.000000, 350.829223}, // CapBack1 - 9
  348. {0.139765, -0.006727, -0.008035, 0.000000, 0.000000, 350.829223}, // CapBack1 - 10
  349. {0.164338, 0.010682, -0.006304, 0.000000, 0.000000, 1.317132}, // CapBack5 - 11
  350. {0.168692, -0.012686, -0.006304, 0.000000, 0.000000, 2.620430}, // CapBack5 - 12
  351. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  352. {0.180397, -0.037633, -0.003055, 0.000000, 0.000000, 334.995819}, // CapBack5 - 14
  353. {0.138529, -0.023847, -0.006882, 0.000000, 0.000000, 349.513183}, // CapBack5 - 15
  354. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  355. {0.165150, 0.008241, -0.002468, 0.000000, 0.000000, 359.865356}, // CapBack5 - 17
  356. {0.125999, -0.006320, -0.007210, 0.000000, 0.000000, 351.895660}, // CapBack5 - 18
  357. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  358. {0.178122, -0.005292, -0.007210, 0.000000, 0.000000, 357.589874}, // CapBack5 - 20
  359. {0.171341, -0.012229, -0.009898, 0.000000, 0.000000, 351.194061}, // CapBack5 - 21
  360. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  361. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  362. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  363. {0.157626, -0.029724, -0.004464, 0.000000, 0.000000, 331.973846}, // CapBack5 - 25
  364. {0.152022, -0.029724, -0.004464, 0.000000, 0.000000, 331.973846}, // CapBack5 - 26
  365. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  366. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  367. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  368. {0.180999, -0.032568, -0.011626, 0.000000, 0.000000, 340.068969}, // CapBack5 - 30
  369. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  370. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  371. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  372. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  373. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  374. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  375. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  376. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  377. {0.127392, -0.045833, -0.011626, 0.000000, 0.000000, 332.066528}, // CapBack5 - 39
  378. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  379. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  380. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  381. {0.106016, -0.009698, -0.005557, 0.000000, 0.000000, 352.879241}, // CapBack5 - 43
  382. {0.123384, -0.003855, -0.005557, 0.000000, 0.000000, 339.552703}, // CapBack5 - 44
  383. {0.133027, -0.010028, -0.005557, 0.000000, 0.000000, 351.249084}, // CapBack5 - 45
  384. {0.187303, 0.009308, -0.007567, 0.000000, 0.000000, 354.531066}, // CapBack5 - 46
  385. {0.181427, -0.029691, -0.009906, 0.000000, 0.000000, 340.553741}, // CapBack5 - 47
  386. {0.202131, -0.033994, -0.008840, 0.000000, 0.000000, 349.174133}, // CapBack5 - 48
  387. {0.144064, -0.046047, -0.005176, 0.000000, 0.000000, 327.833953}, // CapBack5 - 49
  388. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  389. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  390. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  391. {0.156962, -0.014533, -0.005744, 0.000000, 0.000000, 339.649780}, // CapBack5 - 53
  392. {0.170897, 0.032927, -0.004505, 0.000000, 0.000000, 4.658165}, // CapBack5 - 54
  393. {0.170897, 0.000525, -0.008647, 0.000000, 0.000000, 4.658165}, // CapBack5 - 55
  394. {0.170897, 0.000525, -0.008647, 0.000000, 0.000000, 4.658165}, // CapBack5 - 56
  395. {0.204822, 0.013232, -0.007975, 0.000000, 0.000000, 358.332122}, // CapBack5 - 57
  396. {0.137341, 0.002028, -0.007975, 0.000000, 0.000000, 358.332122}, // CapBack5 - 58
  397. {0.186327, 0.028765, -0.006357, 0.000000, 0.000000, 9.349652}, // CapBack5 - 59
  398. {0.167387, -0.014165, -0.010267, 0.000000, 0.000000, 347.202239}, // CapBack5 - 60
  399. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  400. {0.153622, 0.026057, 0.001912, 0.000000, 0.000000, 1.657262}, // CapBack5 - 62
  401. {0.180733, 0.004340, -0.005340, 0.000000, 0.000000, 0.000000}, // CapBack1 - 63
  402. {0.135751, 0.000370, -0.005340, 0.000000, 0.000000, 351.369049}, // CapBack1 - 64
  403. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  404. {0.151557, 0.003149, -0.004474, 0.000000, 0.000000, 343.369781}, // CapBack2 - 66
  405. {0.148032, -0.000815, -0.004474, 0.000000, 0.000000, 347.334899}, // CapBack2 - 67
  406. {0.148032, 0.018842, -0.007647, 0.000000, 0.000000, 355.218048}, // CapBack2 - 68
  407. {0.169898, 0.006962, -0.006380, 0.000000, 0.000000, 4.303595}, // CapBack2 - 69
  408. {0.153013, 0.012083, 0.000254, 0.000000, 0.000000, 348.646881}, // CapBack2 - 70
  409. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  410. {0.150600, 0.005597, -0.006945, 0.000000, 0.000000, 348.646881}, // CapBack2 - 72
  411. {0.151958, 0.007609, -0.007373, 0.000000, 0.000000, 352.321228}, // CapBack2 - 73
  412. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  413. {0.164638, -0.009942, -0.007373, 0.000000, 0.000000, 347.293334}, // CapBack2 - 75
  414. {0.174797, -0.027673, -0.002500, 0.000000, 0.000000, 347.293334}, // CapBack2 - 76
  415. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  416. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  417. {0.145512, -0.005392, 0.000265, 0.000000, 0.000000, 349.725921}, // CapBack2 - 79
  418. {0.135133, -0.015628, -0.005431, 0.000000, 0.000000, 349.725921}, // CapBack2 - 80
  419. {0.135133, -0.015628, -0.005431, 0.000000, 0.000000, 349.725921}, // CapBack2 - 81
  420. {0.208755, -0.028677, -0.005431, 0.000000, 0.000000, 335.827545}, // CapBack2 - 82
  421. {0.198342, -0.028677, -0.005431, 0.000000, 0.000000, 335.827545}, // CapBack2 - 83
  422. {0.207749, -0.028677, -0.005431, 0.000000, 0.000000, 335.827545}, // CapBack2 - 84
  423. {0.186061, -0.017886, -0.009003, 0.000000, 0.000000, 342.158477}, // CapBack2 - 85
  424. {0.119761, -0.000590, -0.006898, 356.842010, 357.498840, 350.228424}, // CapBack2 - 86
  425. {0.162129, -0.029754, -0.009792, 0.000000, 0.000000, 335.401397}, // CapBack2 - 87
  426. {0.162129, 0.006584, -0.005103, 0.000000, 0.000000, 350.173980}, // CapBack2 - 88
  427. {0.173523, -0.018237, -0.008053, 0.000000, 0.000000, 1.074956}, // CapBack2 - 89
  428. {0.173523, 0.004939, -0.005089, 0.000000, 0.000000, 1.074956}, // CapBack2 - 90
  429. {0.173523, -0.002368, -0.005089, 0.000000, 0.000000, 1.074956}, // CapBack2 - 91
  430. {0.191579, -0.039141, -0.005089, 0.000000, 0.000000, 353.232330}, // CapBack2 - 92
  431. {0.190105, 0.007120, -0.005089, 0.000000, 0.000000, 8.263933}, // CapBack2 - 93
  432. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  433. {0.140587, -0.020173, -0.002521, 0.000000, 0.000000, 354.900054}, // CapBack2 - 95
  434. {0.166945, -0.018467, -0.006057, 0.000000, 0.000000, 340.769165}, // CapBack2 - 96
  435. {0.149077, -0.028112, -0.006057, 0.000000, 0.000000, 340.769165}, // CapBack2 - 97
  436. {0.169777, -0.007985, -0.006057, 0.000000, 0.000000, 340.769165}, // CapBack2 - 98
  437. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  438. {0.196824, -0.009257, -0.006057, 0.000000, 0.000000, 356.336090}, // CapBack2 - 100
  439. {0.177550, -0.027981, -0.006057, 0.000000, 0.000000, 343.939056}, // CapBack2 - 101
  440. {0.174734, 0.009933, -0.009756, 0.000000, 0.000000, 3.055547}, // CapBack2 - 102
  441. {0.188160, -0.013580, -0.004421, 0.000000, 0.000000, 356.492431}, // CapBack2 - 103
  442. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  443. {0.190762, -0.013580, -0.004421, 0.000000, 0.000000, 356.492431}, // CapBack2 - 105
  444. {0.187602, -0.025435, -0.010075, 0.000000, 0.000000, 346.004516}, // CapBack2 - 106
  445. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  446. {0.175870, -0.003954, -0.007077, 0.000000, 0.000000, 346.004516}, // CapBack2 - 108
  447. {0.172407, -0.013431, -0.010775, 0.000000, 0.000000, 346.004516}, // CapBack2 - 109
  448. {0.172407, -0.013431, -0.010775, 0.000000, 0.000000, 346.004516}, // CapBack2 - 110
  449. {0.150013, 0.003311, -0.006409, 0.000000, 0.000000, 352.270080}, // CapBack2 - 111
  450. {0.141717, -0.009559, -0.006409, 0.000000, 0.000000, 352.270080}, // CapBack2 - 112
  451. {0.185393, -0.023785, -0.004980, 0.000000, 0.000000, 345.606567}, // CapBack2 - 113
  452. {0.185393, -0.000169, -0.010926, 0.000000, 0.000000, 351.197326}, // CapBack2 - 114
  453. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  454. {0.182650, 0.004789, -0.010926, 0.000000, 0.000000, 357.257171}, // CapBack2 - 116
  455. {0.134004, 0.017698, -0.005831, 0.000000, 0.000000, 357.257171}, // CapBack2 - 117
  456. {0.134004, 0.017698, -0.005831, 0.000000, 0.000000, 357.257171}, // CapBack2 - 118
  457. {0.156197, 0.006800, -0.005671, 351.351135, 357.498840, 350.228424}, // CapBack2 - 119
  458. {0.178981, -0.028772, -0.004536, 0.000000, 0.000000, 346.605316}, // CapBack2 - 120
  459. {0.183907, -0.011432, -0.004536, 0.000000, 0.000000, 355.820770}, // CapBack2 - 121
  460. {0.165320, -0.005021, -0.004536, 0.000000, 0.000000, 355.820770}, // CapBack2 - 122
  461. {0.200145, -0.002194, -0.008751, 0.000000, 0.000000, 358.896423}, // CapBack2 - 123
  462. {0.182011, 0.001444, -0.002327, 0.000000, 0.000000, 357.818420}, // CapBack2 - 124
  463. {0.151200, 0.008420, -0.005776, 0.000000, 0.000000, 357.818420}, // CapBack2 - 125
  464. {0.187609, 0.001857, -0.004008, 0.000000, 0.000000, 7.271462}, // CapBack2 - 126
  465. {0.188872, -0.010934, -0.006273, 0.000000, 0.000000, 354.714599}, // CapBack2 - 127
  466. {0.187277, -0.010814, -0.012647, 0.000000, 0.000000, 342.365417}, // CapBack2 - 128
  467. {0.133478, 0.005174, -0.012647, 0.000000, 0.000000, 358.076538}, // CapBack2 - 129
  468. {0.096691, -0.040395, -0.006268, 0.000000, 0.000000, 328.075073}, // CapBack2 - 130
  469. {0.159023, -0.001297, -0.003358, 0.000000, 0.000000, 354.126007}, // CapBack2 - 131
  470. {0.052064, -0.014930, -0.003462, 0.000000, 0.000000, 345.376892}, // CapBack2 - 132
  471. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  472. {0.165563, -0.013992, -0.003462, 0.000000, 0.000000, 356.365600}, // CapBack2 - 134
  473. {0.146837, -0.006449, -0.006697, 0.000000, 0.000000, 349.979614}, // CapBack2 - 135
  474. {0.146837, -0.001257, -0.006697, 0.000000, 0.000000, 353.938903}, // CapBack2 - 136
  475. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  476. {0.179458, 0.018936, -0.006697, 0.000000, 0.000000, 13.018135}, // CapBack2 - 138
  477. {0.179458, 0.018936, -0.006697, 0.000000, 0.000000, 13.018135}, // CapBack2 - 139
  478. {0.182565, 0.010967, -0.006697, 0.000000, 0.000000, 13.018135}, // CapBack2 - 140
  479. {0.182565, 0.009535, -0.006697, 0.000000, 0.000000, 13.018135}, // CapBack2 - 141
  480. {0.182565, -0.002640, -0.006697, 0.000000, 0.000000, 359.800872}, // CapBack2 - 142
  481. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  482. {0.228769, -0.002640, -0.011189, 0.000000, 0.000000, 359.800872}, // CapBack2 - 144
  483. {0.171856, 0.000946, -0.001703, 0.000000, 0.000000, 359.800872}, // CapBack2 - 145
  484. {0.154141, -0.004233, -0.008664, 0.000000, 0.000000, 355.798858}, // CapBack2 - 146
  485. {0.149305, -0.024469, 0.000980, 0.000000, 0.000000, 351.391906}, // CapBack2 - 147
  486. {0.176194, -0.021742, -0.003060, 0.000000, 0.000000, 351.391906}, // CapBack2 - 148
  487. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  488. {0.187446, -0.014221, -0.003060, 0.000000, 0.000000, 2.834435}, // CapBack2 - 150
  489. {0.197199, 0.001229, -0.003060, 0.000000, 0.000000, 2.834435}, // CapBack2 - 151
  490. {0.172892, -0.015298, -0.003060, 0.000000, 0.000000, 2.834435}, // CapBack2 - 152
  491. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  492. {0.138590, 0.002724, -0.005538, 0.000000, 0.000000, 2.834435}, // CapBack2 - 154
  493. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  494. {0.219108, -0.037769, -0.001686, 0.000000, 0.000000, 354.529266}, // CapBack2 - 156
  495. {0.155086, 0.003292, 0.001146, 0.000000, 0.000000, 354.529266}, // CapBack2 - 157
  496. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  497. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  498. {0.145796, -0.011042, -0.004201, 0.000000, 0.000000, 354.529266}, // CapBack2 - 160
  499. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  500. {0.158876, 0.012828, -0.008527, 0.000000, 0.000000, 354.529266}, // CapBack2 - 162
  501. {0.137763, -0.001837, -0.008527, 0.000000, 0.000000, 345.313812}, // CapBack2 - 163
  502. {0.146060, -0.013492, -0.008527, 0.000000, 0.000000, 345.313812}, // CapBack2 - 164
  503. {0.163246, -0.012942, -0.004973, 0.000000, 0.000000, 344.333374}, // CapBack2 - 165
  504. {0.140111, 0.007943, -0.004973, 0.000000, 0.000000, 349.497924}, // CapBack2 - 166
  505. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  506. {0.141848, 0.007943, -0.010143, 0.000000, 0.000000, 349.497924}, // CapBack2 - 168
  507. {0.165495, 0.006009, -0.005755, 0.000000, 0.000000, 10.909480}, // CapBack2 - 169
  508. {0.172246, 0.002606, -0.011039, 0.000000, 0.000000, 0.820177}, // CapBack2 - 170
  509. {0.179460, -0.000000, -0.006654, 0.000000, 0.000000, 359.487091}, // CapBack2 - 171
  510. {0.179460, -0.000000, -0.006654, 0.000000, 0.000000, 359.487091}, // CapBack2 - 172
  511. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  512. {0.208994, -0.007943, -0.006654, 0.000000, 0.000000, 345.862579}, // CapBack2 - 174
  513. {0.178250, -0.007943, -0.009599, 0.000000, 0.000000, 345.862579}, // CapBack2 - 175
  514. {0.188804, -0.008412, -0.010471, 0.000000, 0.000000, 357.926025}, // CapBack2 - 176
  515. {0.215245, -0.046786, -0.010471, 0.000000, 0.000000, 333.935485}, // CapBack2 - 177
  516. {0.196470, 0.024980, -0.006861, 0.000000, 0.000000, 9.335173}, // CapBack2 - 178
  517. {0.170804, 0.017931, -0.009900, 0.000000, 0.000000, 9.335173}, // CapBack2 - 179
  518. {0.202440, -0.022104, -0.009900, 0.000000, 0.000000, 350.458648}, // CapBack2 - 180
  519. {0.170491, -0.001973, -0.004454, 0.000000, 0.000000, 350.458648}, // CapBack2 - 181
  520. {0.139138, 0.009438, -0.007567, 0.000000, 0.000000, 350.458648}, // CapBack2 - 182
  521. {0.144261, 0.006484, -0.005938, 0.000000, 0.000000, 350.458648}, // CapBack2 - 183
  522. {0.173439, 0.008749, -0.009442, 0.000000, 0.000000, 4.531515}, // CapBack2 - 184
  523. {0.178510, -0.005743, -0.003814, 0.000000, 0.000000, 354.167968}, // CapBack2 - 185
  524. {0.182519, -0.013562, -0.003814, 0.000000, 0.000000, 354.167968}, // CapBack2 - 186
  525. {0.146338, -0.063390, -0.001417, 0.000000, 0.000000, 331.099212}, // CapBack2 - 187
  526. {0.149057, -0.028143, -0.001417, 0.000000, 0.000000, 331.099212}, // CapBack2 - 188
  527. {0.190356, -0.030107, -0.001417, 0.000000, 0.000000, 343.327667}, // CapBack2 - 189
  528. {0.202054, -0.040251, -0.001417, 0.000000, 0.000000, 343.327667}, // CapBack2 - 190
  529. {0.197020, -0.033725, -0.006150, 0.000000, 0.000000, 343.327667}, // CapBack2 - 191
  530. {0.193556, -0.001809, -0.006150, 0.000000, 0.000000, 355.718383}, // CapBack2 - 192
  531. {0.196684, -0.004270, -0.006150, 0.000000, 0.000000, 355.718383}, // CapBack2 - 193
  532. {0.196684, -0.004270, -0.006150, 0.000000, 0.000000, 355.718383}, // CapBack2 - 194
  533. {0.206905, 0.000445, -0.006150, 0.000000, 0.000000, 7.253017}, // CapBack2 - 195
  534. {0.134116, 0.009748, -0.006150, 0.000000, 0.000000, 1.506720}, // CapBack2 - 196
  535. {0.179956, -0.001632, -0.006150, 0.000000, 0.000000, 1.506720}, // CapBack2 - 197
  536. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  537. {0.168909, -0.005808, -0.006150, 0.000000, 0.000000, 1.506720}, // CapBack2 - 199
  538. {0.174613, 0.018596, -0.006150, 0.000000, 0.000000, 8.241870}, // CapBack2 - 200
  539. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  540. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  541. {0.186252, 0.025931, -0.006150, 359.226074, 0.000000, 16.592515}, // CapBack2 - 203
  542. {0.163428, 0.002381, -0.010481, 1.199788, 0.000000, 354.398010}, // CapBack2 - 204
  543. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  544. {0.163428, 0.008872, -0.010481, 1.199788, 0.000000, 354.398010}, // CapBack2 - 206
  545. {0.112955, 0.013557, -0.004934, 1.199788, 0.000000, 354.398010}, // CapBack2 - 207
  546. {0.155579, 0.006800, -0.001140, 351.351135, 357.498840, 350.228424}, // CapBack2 - 208
  547. {0.160963, 0.002805, -0.004934, 1.199788, 0.000000, 359.006042}, // CapBack2 - 209
  548. {0.128493, -0.003984, -0.004934, 1.199788, 0.000000, 359.006042}, // CapBack2 - 210
  549. {0.176982, 0.023702, -0.004934, 1.199788, 0.000000, 14.166459}, // CapBack2 - 211
  550. {0.128467, -0.008255, -0.004934, 1.199788, 0.000000, 343.645538}, // CapBack2 - 212
  551. {0.185985, -0.003673, -0.005680, 1.199788, 0.000000, 358.541107}, // CapBack2 - 213
  552. {0.176328, -0.009473, -0.004319, 1.199788, 0.000000, 358.541107}, // CapBack2 - 214
  553. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  554. {0.181434, 0.009004, -0.004319, 1.199788, 0.000000, 10.780131}, // CapBack2 - 216
  555. {0.161066, -0.037283, -0.004319, 1.199788, 0.000000, 328.898590}, // CapBack2 - 217
  556. {0.149989, 0.001034, -0.007441, 1.199788, 0.000000, 352.247955}, // CapBack2 - 218
  557. {0.158134, 0.033803, -0.004034, 1.199788, 0.000000, 23.654287}, // CapBack2 - 219
  558. {0.137110, -0.021979, -0.006172, 1.199788, 0.000000, 336.757873}, // CapBack2 - 220
  559. {0.221894, 0.006963, -0.006172, 1.199788, 0.000000, 7.847995}, // CapBack2 - 221
  560. {0.204477, -0.043676, -0.006172, 1.199788, 0.000000, 350.189361}, // CapBack2 - 222
  561. {0.207657, -0.008146, -0.006172, 1.199788, 0.000000, 350.189361}, // CapBack2 - 223
  562. {0.190393, 0.000228, 0.001606, 1.199788, 0.000000, 11.879378}, // CapBack2 - 224
  563. {0.190393, 0.000228, 0.001606, 1.199788, 0.000000, 11.879378}, // CapBack2 - 225
  564. {0.163592, 0.006964, -0.009153, 1.199788, 0.000000, 11.879378}, // CapBack2 - 226
  565. {0.182670, 0.016327, -0.005560, 1.199788, 0.000000, 359.033477}, // CapBack2 - 227
  566. {0.200009, -0.013580, -0.005560, 1.199788, 0.000000, 347.257019}, // CapBack2 - 228
  567. {0.151536, -0.004985, -0.003730, 1.199788, 0.000000, 1.332237}, // CapBack2 - 229
  568. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  569. {0.162618, 0.025505, -0.006327, 1.199788, 0.000000, 1.332237}, // CapBack2 - 231
  570. {0.162618, -0.021187, -0.006327, 1.199788, 0.000000, 1.332237}, // CapBack2 - 232
  571. {0.184628, 0.009246, -0.006327, 1.199788, 0.000000, 9.318798}, // CapBack2 - 233
  572. {0.138607, -0.007896, -0.002440, 1.199788, 0.000000, 357.667327}, // CapBack2 - 234
  573. {0.102028, -0.007896, -0.002440, 1.199788, 0.000000, 357.667327}, // CapBack2 - 235
  574. {0.141433, 0.001568, -0.007129, 1.199788, 0.000000, 357.667327}, // CapBack2 - 236
  575. {0.171422, 0.003976, -0.007129, 1.199788, 0.000000, 14.896168}, // CapBack2 - 237
  576. {0.162112, -0.033918, -0.009757, 1.199788, 0.000000, 329.660644}, // CapBack2 - 238
  577. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  578. {0.195676, -0.000346, -0.009059, 1.199788, 0.000000, 359.219635}, // CapBack2 - 240
  579. {0.225913, -0.093273, -0.009059, 1.199788, 0.000000, 338.582885}, // CapBack2 - 241
  580. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  581. {0.119849, 0.008509, -0.004875, 1.199788, 0.000000, 351.250366}, // CapBack2 - 243
  582. {0.142359, -0.007982, -0.002139, 1.199788, 0.000000, 338.201110}, // CapBack2 - 244
  583. {0.213636, 0.020328, -0.002139, 1.199788, 0.000000, 9.539301}, // CapBack2 - 245
  584. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  585. {0.191313, -0.025602, -0.008449, 1.199788, 0.000000, 345.625457}, // CapBack2 - 247
  586. {0.218937, -0.025602, -0.008449, 1.199788, 0.000000, 345.625457}, // CapBack2 - 248
  587. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  588. {0.171738, -0.008147, -0.009720, 1.199788, 0.000000, 351.946502}, // CapBack2 - 250
  589. {0.171738, -0.008147, -0.004024, 1.199788, 0.000000, 351.946502}, // CapBack2 - 251
  590. {0.191814, -0.018688, -0.001956, 1.199788, 0.000000, 351.946502}, // CapBack2 - 252
  591. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  592. {0.191814, -0.018688, -0.001956, 1.199788, 0.000000, 349.399566}, // CapBack2 - 254
  593. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  594. {0.172645, -0.018688, -0.001956, 1.199788, 0.000000, 349.399566}, // CapBack2 - 256
  595. {0.164325, -0.017981, -0.006244, 1.199788, 0.000000, 339.549896}, // CapBack2 - 257
  596. {0.182589, -0.038286, -0.006244, 1.199788, 0.000000, 339.549896}, // CapBack2 - 258
  597. {0.185917, -0.047972, -0.006244, 1.199788, 0.000000, 339.549896}, // CapBack2 - 259
  598. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  599. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  600. {0.128629, 0.020902, -0.006244, 1.199788, 0.000000, 358.125885}, // CapBack2 - 262
  601. {0.179700, 0.011040, 0.000088, 1.199788, 0.000000, 12.603851}, // CapBack2 - 263
  602. {0.216605, -0.099891, 0.000088, 1.199788, 0.000000, 342.666625}, // CapBack2 - 264
  603. {0.147310, -0.000934, -0.005484, 1.199788, 0.000000, 357.229003}, // CapBack2 - 265
  604. {0.158313, -0.000955, -0.006872, 1.199788, 0.000000, 357.229003}, // CapBack2 - 266
  605. {0.166343, -0.003141, -0.006872, 1.199788, 0.000000, 2.876371}, // CapBack2 - 267
  606. {0.171693, -0.050949, -0.009712, 1.199788, 0.000000, 340.129333}, // CapBack2 - 268
  607. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  608. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  609. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  610. {0.178678, -0.035822, -0.005613, 1.199788, 0.000000, 334.835510}, // CapBack2 - 272
  611. {0.134644, -0.001463, -0.003339, 351.351135, 357.498840, 350.228424}, // CapBack 2 - 273
  612. {0.143802, -0.005543, -0.005613, 1.199788, 0.000000, 342.616333}, // CapBack2 - 274
  613. {0.143802, -0.002142, -0.006920, 1.199788, 0.000000, 342.616333}, // CapBack2 - 275
  614. {0.143802, -0.002142, -0.006920, 1.199788, 0.000000, 342.616333}, // CapBack2 - 276
  615. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  616. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  617. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  618. {0.154324, 0.004585, -0.006920, 1.199788, 0.000000, 342.616333}, // CapBack2 - 280
  619. {0.141513, -0.001361, -0.006920, 1.199788, 0.000000, 342.616333}, // CapBack2 - 281
  620. {0.178879, -0.032552, -0.007550, 1.199788, 0.000000, 339.513275}, // CapBack2 - 282
  621. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  622. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  623. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  624. {0.148372, 0.012662, -0.003643, 1.199788, 0.000000, 352.562530}, // CapBack2 - 286
  625. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  626. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  627. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  628. {0.169198, -0.008094, -0.004952, 1.199788, 0.000000, 355.882568}, // CapBack2 - 290
  629. {0.197062, -0.010244, -0.008868, 1.199788, 0.000000, 347.195098}, // CapBack2 - 291
  630. {0.129213, -0.005561, -0.008868, 1.199788, 0.000000, 347.195098}, // CapBack2 - 292
  631. {0.0, 0.0, 0.0, 0.0, 0.0, 0.0},
  632. {0.184856, -0.017724, -0.004568, 1.199788, 0.000000, 340.720977}, // CapBack2 - 294
  633. {0.164693, -0.035874, -0.004568, 1.199788, 0.000000, 338.932373}, // CapBack2 - 295
  634. {0.162584, -0.071738, -0.009352, 1.199788, 0.000000, 324.114501}, // CapBack2 - 296
  635. {0.201801, 0.013063, -0.004067, 1.199788, 0.000000, 11.497174}, // CapBack2 - 297
  636. {0.170668, 0.000798, -0.008211, 1.199788, 0.000000, 0.166477}, // CapBack2 - 298
  637. {0.189388, -0.034348, -0.008211, 1.199788, 0.000000, 338.146575} // CapBack2 - 299
  638. };
  639.  
  640. public OnFilterScriptInit()
  641. {
  642.     print("\n========================================================");
  643.     print(" Ulric Hat/Caps FS by Xaviour212/Dimas Rizward");
  644.     print("========================================================\n");
  645.     return 1;
  646. }
  647.  
  648. public OnPlayerConnect(playerid)
  649. {
  650.     if(!dini_Exists(PFile(playerid))) return dini_Create(PFile(playerid));
  651.     return 1;
  652. }
  653.  
  654. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  655. {
  656.     new Float:oldposx, Float:oldposy, Float:oldposz;
  657.     new Float:tempposx, Float:tempposy, Float:tempposz;
  658.     GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  659.     tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z);
  660.     if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  661.     { return true; }
  662.     return false;
  663. }
  664.  
  665. public IsAtClothesShop(playerid)
  666. {
  667.     if(PlayerToPoint(20,playerid,161.5236, -83.3203, 1001.8047) ||
  668.     PlayerToPoint(20,playerid,207.7182,-100.9436,1005.2578) ||
  669.     PlayerToPoint(20,playerid,203.9261,-43.2656,1001.8047) ||
  670.     PlayerToPoint(20,playerid,206.3746,-8.1824,1001.2109) ||
  671.     PlayerToPoint(20,playerid,207.0685,-129.1833,1003.5078))
  672.     { return true; }
  673.     return false;
  674. }
  675.  
  676. public UseCaps(playerid, capsid)
  677. {
  678.     new skin;
  679.     skin = GetPlayerSkin(playerid);
  680.     if(SkinCaps[skin][0] == 0.0) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Invalid skin");
  681.     SetPlayerAttachedObject(playerid, SLOT, 18925+capsid, 2, SkinCaps[skin][0], SkinCaps[skin][1], SkinCaps[skin][2], SkinCaps[skin][3],SkinCaps[skin][4], SkinCaps[skin][5], 1.000000, 1.000000, 1.000000);
  682.     return 1;
  683. }
  684.  
  685. public UseBackCaps(playerid, backcid)
  686. {
  687.     new skin;
  688.     skin = GetPlayerSkin(playerid);
  689.     if(SkinBackCaps[skin][0] == 0.0) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Invalid skin");
  690.     SetPlayerAttachedObject(playerid, SLOT, 18939+backcid, 2, SkinBackCaps[skin][0], SkinBackCaps[skin][1], SkinBackCaps[skin][2], SkinBackCaps[skin][3], SkinBackCaps[skin][4], SkinBackCaps[skin][5], 1.000000, 1.000000, 1.000000);
  691.     return 1;
  692. }
  693.    
  694. CMD:buycaps(playerid, params[])
  695. {
  696.     new buy = BUY_CAPS, caps, save = SAVE_CAPS;
  697.     new asd[64];
  698.     if(buy == 0) return 0;
  699.     if(!IsAtClothesShop(playerid)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]You must in shop");
  700.     if(sscanf(params, "i", caps)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Usage: /buycaps [1 - 10]");
  701.     if(caps <= 0 || caps > 11) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Usage: /buycaps [1 - 10]");
  702.     if(GetPlayerMoney(playerid) <= CAPS_PRICE) return SendClientMessage(playerid, COLOR_RED, "You dont have enough money");
  703.     format(asd, 64, "Caps%i", caps);
  704.     if(save == 1)
  705.     {
  706.         if(dini_Int(PFile(playerid), asd) == 1) return SendClientMessage(playerid, COLOR_RED, "[ERROR]You already have this caps");
  707.         dini_IntSet(PFile(playerid), asd, 1);
  708.         SendClientMessage(playerid, COLOR_GREEN1, "You has buy a new caps, type /usecaps to use a caps");
  709.     }
  710.     if(save == 0)
  711.     {
  712.         UseCaps(playerid, caps);
  713.     }
  714.     return 1;
  715. }
  716.  
  717. CMD:buybackcaps(playerid, params[])
  718. {
  719.     new buy = BUY_CAPS, caps, save = SAVE_CAPS;
  720.     new asd[64];
  721.     if(buy == 0) return 0;
  722.     if(!IsAtClothesShop(playerid)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]You must in shop");
  723.     if(sscanf(params, "i", caps)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Usage: /buybackcaps [1 - 5]");
  724.     if(caps <= 0 || caps > 5) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Usage: /buybackcaps [1 - 5]");
  725.     if(GetPlayerMoney(playerid) <= CAPS_PRICE) return SendClientMessage(playerid, COLOR_RED, "You dont have enough money");
  726.     format(asd, 64, "BackC%i", caps);
  727.     if(save == 1)
  728.     {
  729.         if(dini_Int(PFile(playerid), asd) == 1) return SendClientMessage(playerid, COLOR_RED, "[ERROR]You already have this backcaps");
  730.         dini_IntSet(PFile(playerid), asd, 1);
  731.         SendClientMessage(playerid, COLOR_GREEN1, "You has buy a new caps, type /usecaps to use a caps");
  732.     }
  733.     if(save == 0)
  734.     {
  735.         UseBackCaps(playerid, caps);
  736.     }
  737.     return 1;
  738. }
  739.  
  740. CMD:usecaps(playerid, params[])
  741. {
  742.     new caps, buy = BUY_CAPS, save = SAVE_CAPS;
  743.     new asd[64];
  744.     if(save == 0) return 0;
  745.     if(sscanf(params, "i", caps)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Usage: /usecaps [1 - 10]");
  746.     if(caps <= 0 || caps > 11) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Usage: /usecaps [1 - 10]");
  747.     if(buy == 1)
  748.     {
  749.         format(asd, 64, "Caps%i", caps);
  750.         if(dini_Int(PFile(playerid), asd) == 0) return SendClientMessage(playerid, COLOR_RED, "[ERROR]You dont have this caps");
  751.         UseCaps(playerid, caps);
  752.     }
  753.     if(buy == 0)
  754.     {
  755.         UseCaps(playerid, caps);
  756.     }
  757.     return 1;
  758. }
  759.  
  760. CMD:usebackcaps(playerid, params[])
  761. {
  762.     new caps, buy = BUY_CAPS, save = SAVE_CAPS;
  763.     new asd[64];
  764.     if(save == 0) return 0;
  765.     if(sscanf(params, "i", caps)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Usage: /usebackcaps [1 - 5]");
  766.     if(caps <= 0 || caps > 5) return SendClientMessage(playerid, COLOR_RED, "[ERROR]Usage: /usebackcaps [1 - 5]");
  767.     if(buy == 1)
  768.     {
  769.         format(asd, 64, "BackC%i", caps);
  770.         if(dini_Int(PFile(playerid), asd) == 0) return SendClientMessage(playerid, COLOR_RED, "[ERROR]You dont have this backcaps");
  771.         UseCaps(playerid, caps);
  772.     }
  773.     if(buy == 0)
  774.     {
  775.         UseBackCaps(playerid, caps);
  776.     }
  777.     return 1;
  778. }
  779.  
  780. CMD:removecaps(playerid, params[])
  781. {
  782.     if(!IsPlayerAttachedObjectSlotUsed(playerid, SLOT)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]You dont use the caps/backcaps");
  783.     UnUseCaps(playerid);
  784.     return 1;
  785. }
  786.  
  787. CMD:hcaps(playerid, params[])
  788. {
  789.     SendClientMessage(playerid, -1, "|=====================CAPS/BACKCAPS BY XAV212=====================|");
  790.     SendClientMessage(playerid, COLOR_GREEN1, "     - /buycaps - Buy a caps");
  791.     SendClientMessage(playerid, COLOR_GREEN1, "     - /buybackcaps - Buy a backcaps");
  792.     SendClientMessage(playerid, COLOR_GREEN1, "     - /usecaps - Use a caps");
  793.     SendClientMessage(playerid, COLOR_GREEN1, "     - /usebackcaps - Use a backcaps");
  794.     SendClientMessage(playerid, COLOR_GREEN1, "     - /removecaps - Remove a caps/backcaps");
  795.     return 1;
  796. }
  797.  
  798. public UnUseCaps(playerid)
  799. {
  800.     RemovePlayerAttachedObject(playerid, SLOT);
  801. }
  802.  
  803. stock Gn(playerid)
  804. {
  805.     new pname[24];
  806.     GetPlayerName(playerid,pname,MAX_PLAYER_NAME);
  807.     return pname;
  808. }
  809.  
  810. stock PFile(playerid)
  811. {
  812.     new file[256], file2[40];
  813.     format(file2, 40, "%s", CAPS_FILE);
  814.     format(file,64,"%s/%s.ini",file2, Gn(playerid));
  815.     return file;
  816. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement