Guest User

SAPSidhu

a guest
Apr 14th, 2009
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.45 KB | None | 0 0
  1. /*
  2. Credits goes to:
  3. [SAP]Sidhu, for his awesome idea and programming!
  4. [SAP]Sidhu Made this!
  5. DO NOT REMOVE THE STUFF ABOVE, ANY ATTEMP TO DO SO WILL RESULT IN YOU PAYING THE CONSEQUENCES IF CAUGHT
  6. */
  7. //===============================Include Files==================================
  8.  
  9. #include <a_samp>
  10.  
  11. #define FILTERSCRIPT
  12. #define COLOR_WHITE 0xFFFFFFAA
  13. #define COLOR_YELLOW 0xFFFF00AA
  14.  
  15. #if defined FILTERSCRIPT
  16.  
  17. #define COLOR_GREEN 0x33AA33AA
  18. #define COLOR_RED 0xAA3333AA
  19. #define LIGHT_BLUE 0x33CCFFAA
  20. #define COLOR_WHITE 0xFFFFFFAA
  21.  
  22. new clubint;
  23.  
  24. forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
  25.  
  26. main()
  27. {
  28. }
  29.  
  30. public OnPlayerSpawn(playerid)
  31. {
  32. SendClientMessage(playerid, LIGHT_BLUE, "This server is running [SAP]Sidhu's Club!");
  33. SendClientMessage(playerid, LIGHT_BLUE, "Type /clubcmds for help with [SAP]Sidhu's Club commands!");
  34. return 1;
  35. }
  36.  
  37. public OnFilterScriptInit()
  38. {
  39. clubint = CreatePickup(1274, 23, 1454.7213,750.9451,11.0234);
  40. CreateObject(14533, 6607.237305, -2249.827637, 20.442127, 0.0000, 0.0000, 0.0000);
  41. CreateObject(14536, 6607.241699, -2249.781250, 20.439936, 0.0000, 0.0000, 0.0000);
  42. CreateObject(14537, 6605.833496, -2249.160400, 5.331080, 0.0000, 0.0000, 0.0000);
  43. CreateObject(14546, 6607.244629, -2249.775635, 20.437056, 0.0000, 0.0000, 0.0000);
  44. CreateObject(14540, 6614.366211, -2244.479980, 4.035219, 0.0000, 0.0000, 90.0000);
  45. CreateObject(14539, 6608.070801, -2242.131104, 11.277025, 0.0000, 0.0000, 0.0000);
  46. CreateObject(1455, 6601.349121, -2251.753906, 4.572622, 0.0000, 0.0000, 0.0000);
  47. CreateObject(1484, 6610.234375, -2252.649658, 4.693694, 355.7028, 30.9397, 19.7670);
  48. CreateObject(1485, 6610.445801, -2245.822754, 4.615193, 0.0000, 27.5020, 152.8755);
  49. CreateObject(1486, 6602.477051, -2244.623535, 4.645878, 0.0000, 0.0000, 0.0000);
  50. CreateObject(1510, 6610.270020, -2245.723633, 4.512716, 0.0000, 0.0000, 0.0000);
  51. CreateObject(1665, 6603.115723, -2253.649902, 4.512624, 0.0000, 0.0000, 0.0000);
  52. CreateObject(1666, 6601.372070, -2246.756592, 4.576696, 0.0000, 0.0000, 0.0000);
  53. CreateObject(1667, 6609.081543, -2244.702881, 4.589509, 0.0000, 0.0000, 0.0000);
  54. CreateObject(1950, 6608.559570, -2253.576660, 4.689097, 0.0000, 0.0000, 0.0000);
  55. CreateObject(1557, 6626.829102, -2257.625488, 3.665396, 0.0000, 0.0000, 0.0000);
  56. CreateObject(1557, 6629.858887, -2257.621338, 3.665396, 0.0000, 0.0000, 180.0000);
  57. CreateObject(1235, 6602.147461, -2245.515869, 3.888843, 0.0000, 0.0000, 0.0000);
  58. CreateObject(2780, 6585.968750, -2244.713623, 4.714686, 0.0000, 0.0000, 0.0000);
  59. CreateObject(2780, 6586.072754, -2252.657715, 4.768061, 0.0000, 0.0000, 180.0000);
  60. CreateObject(2922, 6631.141602, -2249.039307, 5.090607, 0.0000, 0.0000, 90.0000);
  61. CreateObject(3027, 6610.175293, -2245.681641, 4.584429, 0.0000, 110.8673, 348.7500);
  62. CreateObject(3092, 6603.854980, -2248.081299, 20.538544, 93.6786, 0.0000, 1.7189);
  63. CreateObject(2967, 6610.298340, -2251.487793, 4.490929, 0.0000, 0.0000, 72.1927);
  64. CreateObject(2604, 6633.753418, -2257.075928, 4.455561, 0.0000, 0.0000, 270.0000);
  65. CreateObject(2608, 6633.656738, -2254.325684, 4.370158, 0.0000, 0.0000, 0.0000);
  66. CreateObject(1671, 6632.770020, -2256.278320, 4.152648, 0.0000, 0.0000, 89.2775);
  67. CreateObject(2578, 6630.185547, -2248.849609, 4.651206, 0.0000, 0.0000, 0.0000);
  68. CreateObject(2579, 6626.189941, -2248.859863, 4.653706, 0.0000, 0.0000, 0.0000);
  69. CreateObject(2585, 6625.457031, -2249.412598, 4.631205, 0.0000, 0.0000, 90.0001);
  70. CreateObject(2581, 6628.161621, -2248.876953, 3.960822, 0.0000, 0.0000, 0.0000);
  71. CreateObject(2898, 6633.185059, -2256.449951, 3.680628, 0.0000, 0.0000, 0.0000);
  72. CreateObject(2898, 6633.181641, -2251.035889, 3.679378, 0.0000, 0.0000, 0.0000);
  73. CreateObject(1808, 6632.086914, -2258.842773, 3.705399, 0.0000, 0.0000, 180.0000);
  74. CreateObject(2202, 6632.946777, -2251.507324, 3.702250, 0.0000, 0.0000, 0.0000);
  75. CreateObject(2344, 6633.367188, -2256.835693, 4.813563, 0.0000, 0.0000, 67.5000);
  76. CreateObject(2003, 6632.822754, -2258.661377, 4.173441, 0.0000, 0.0000, 180.0000);
  77. CreateObject(2005, 6632.808105, -2258.604980, 4.069458, 0.0000, 0.0000, 180.0000);
  78. CreateObject(8661, 6634.324219, -2266.229736, 2.093272, 87.1469, 358.2811, 271.7189);
  79. CreateObject(8661, 6651.166504, -2251.137451, -0.510848, 87.1469, 358.2811, 1.7189);
  80. CreateObject(2412, 6625.083496, -2256.075684, 3.658686, 0.0000, 0.0000, 270.0000);
  81. CreateObject(2412, 6625.082031, -2250.653076, 3.658686, 0.0000, 0.0000, 270.0000);
  82. CreateObject(8661, 6646.685059, -2258.923340, 0.496687, 87.1469, 358.2811, 181.7189);
  83. CreateObject(2004, 6633.219238, -2258.404541, 4.175407, 0.0000, 0.0000, 143.0441);
  84. CreateObject(16500, 6631.655762, -2257.941895, 5.392226, 0.0000, 0.0000, 0.0000);
  85. CreateObject(14651, 6623.072754, -2239.205322, 5.900152, 0.0000, 0.0000, 78.7500);
  86. CreateObject(1886, 6588.753906, -2241.409912, 18.050508, 37.8152, 359.1406, 55.0039);
  87. CreateObject(1886, 6589.831543, -2256.046143, 18.032717, 37.8152, 0.0000, 133.7539);
  88. CreateObject(1886, 6617.324707, -2241.411621, 18.007710, 37.8152, 0.0000, 302.5040);
  89. CreateObject(1886, 6617.438477, -2256.026855, 18.000513, 37.8152, 0.0000, 235.0040);
  90. CreateObject(2027, 6621.230469, -2235.604248, 4.202113, 0.0000, 0.0000, 218.9839);
  91. CreateObject(2027, 6619.059570, -2232.975342, 4.202113, 0.0000, 0.0000, 218.9839);
  92. CreateObject(2942, 6616.943359, -2263.568359, 4.276585, 0.0000, 0.0000, 180.0000);
  93. CreateObject(2942, 6597.904297, -2263.554932, 4.301585, 0.0000, 0.0000, 180.0000);
  94. CreateObject(1659, 6617.004883, -2267.456299, 14.269251, 0.0000, 0.0000, 0.0000);
  95. CreateObject(1659, 6610.576660, -2267.396973, 14.244255, 0.0000, 0.0000, 0.0000);
  96. CreateObject(1659, 6604.205078, -2267.386963, 14.244251, 0.0000, 0.0000, 0.0000);
  97. CreateObject(1659, 6597.937500, -2267.218750, 14.244259, 0.0000, 0.0000, 0.0000);
  98. CreateObject(1659, 6591.528809, -2267.265137, 14.244263, 0.0000, 0.0000, 0.0000);
  99. CreateObject(1659, 6591.601074, -2230.966797, 14.244503, 0.0000, 0.0000, 0.0000);
  100. CreateObject(1659, 6597.921875, -2230.849854, 14.244499, 0.0000, 0.0000, 0.0000);
  101. CreateObject(1659, 6604.222168, -2230.846924, 14.219492, 0.0000, 0.0000, 0.0000);
  102. CreateObject(1659, 6610.578125, -2230.907959, 14.244499, 0.0000, 0.0000, 0.0000);
  103. CreateObject(2580, 6626.466797, -2248.831055, 7.244267, 0.0000, 0.0000, 0.0000);
  104. CreateObject(2587, 6628.404297, -2248.831055, 7.222802, 0.0000, 0.0000, 0.0000);
  105. CreateObject(2588, 6630.287109, -2248.806152, 7.248240, 0.0000, 0.0000, 0.0000);
  106. CreateObject(1978, 6616.576660, -2268.567627, 16.608746, 0.0000, 0.0000, 0.0000);
  107. CreateObject(1979, 6616.381836, -2267.214600, 16.582306, 0.0000, 0.0000, 0.0000);
  108. CreateObject(2188, 6612.513184, -2230.820313, 10.566804, 0.0000, 0.0000, 270.0000);
  109. CreateObject(2640, 6588.931641, -2264.406738, 10.445572, 0.0000, 0.0000, 0.0000);
  110. CreateObject(2681, 6600.366211, -2264.433838, 9.569010, 0.0000, 0.0000, 0.0000);
  111. CreateObject(2778, 6589.040527, -2233.878174, 9.594009, 0.0000, 0.0000, 180.0000);
  112. CreateObject(2779, 6587.139648, -2232.909668, 3.651577, 0.0000, 0.0000, 315.0000);
  113. CreateObject(2785, 6604.238281, -2266.261719, 16.395975, 0.0000, 0.0000, 0.0000);
  114. CreateObject(1824, 6576.674805, -2235.668701, 4.169671, 0.0000, 0.0000, 90.0000);
  115. CreateObject(2350, 6600.375000, -2246.980957, 3.843337, 0.0000, 0.0000, 0.0000);
  116. CreateObject(2350, 6600.391113, -2244.928955, 3.843337, 0.0000, 0.0000, 0.0000);
  117. CreateObject(2350, 6603.694336, -2243.613281, 3.843337, 0.0000, 0.0000, 0.0000);
  118. CreateObject(2350, 6601.889160, -2243.605713, 3.843337, 0.0000, 0.0000, 0.0000);
  119. CreateObject(2350, 6600.410156, -2251.485352, 3.843337, 0.0000, 0.0000, 0.0000);
  120. CreateObject(2350, 6600.411133, -2253.197266, 3.843337, 0.0000, 0.0000, 0.0000);
  121. CreateObject(2350, 6603.772949, -2254.439209, 3.843337, 0.0000, 0.0000, 0.0000);
  122. CreateObject(2350, 6601.739258, -2254.460449, 3.843337, 0.0000, 0.0000, 0.0000);
  123. CreateObject(2350, 6608.216309, -2254.472168, 3.843337, 0.0000, 0.0000, 0.0000);
  124. CreateObject(2350, 6610.132813, -2254.538574, 3.843337, 0.0000, 0.0000, 0.0000);
  125. CreateObject(2350, 6611.327637, -2251.328857, 3.847007, 0.0000, 0.0000, 0.0000);
  126. CreateObject(2350, 6611.333984, -2253.369141, 3.847007, 0.0000, 0.0000, 0.0000);
  127. CreateObject(2350, 6611.199707, -2246.970459, 3.843337, 0.0000, 0.0000, 0.0000);
  128. CreateObject(2350, 6611.196289, -2245.161377, 3.847007, 0.0000, 0.0000, 0.0000);
  129. CreateObject(2350, 6609.877441, -2243.601318, 3.843337, 0.0000, 0.0000, 0.0000);
  130. CreateObject(2350, 6608.163086, -2243.612549, 3.843337, 0.0000, 0.0000, 0.0000);
  131. CreateObject(2592, 6631.162598, -2253.558594, 4.564848, 0.0000, 0.0000, 270.0000);
  132. CreateObject(2724, 6593.098633, -2246.004395, 4.205688, 0.0000, 0.0000, 0.0000);
  133. CreateObject(2724, 6593.108398, -2252.346680, 4.205688, 0.0000, 0.0000, 180.0000);
  134. CreateObject(1472, 6610.357910, -2262.731201, 15.791671, 0.0000, 0.0000, 0.0000);
  135. CreateObject(2146, 6603.900879, -2248.096436, 19.880802, 0.0000, 0.0000, 0.0000);
  136. CreateObject(2312, 6604.288574, -2261.115234, 6.942739, 0.0000, 0.0000, 180.0000);
  137. CreateObject(14391, 6606.193359, -2248.906738, 8.242779, 0.0000, 0.0000, 180.0000);
  138. CreateObject(1663, 6604.583984, -2246.854736, 7.742908, 0.0000, 0.0000, 90.0000);
  139. CreateObject(1663, 6604.594727, -2249.039307, 7.742908, 0.0000, 0.0000, 90.0000);
  140. CreateObject(1663, 6604.603516, -2251.241211, 7.742908, 0.0000, 0.0000, 90.0000);
  141. CreateObject(2312, 6607.404297, -2235.484863, 6.939340, 0.0000, 0.0000, 0.0000);
  142. CreateObject(2312, 6617.862793, -2240.346436, 7.072357, 0.0000, 0.0000, 308.0471);
  143. CreateObject(2312, 6613.778320, -2262.914551, 6.473057, 0.0000, 0.0000, 180.7823);
  144. CreateObject(2312, 6594.674316, -2262.891846, 6.667445, 0.0000, 0.0000, 180.7823);
  145. CreateObject(2312, 6595.490234, -2249.173096, 9.405905, 0.0000, 0.0000, 90.0000);
  146. CreateObject(2965, 6623.227051, -2239.900879, 4.715847, 0.0000, 0.0000, 349.6868);
  147. CreateObject(2995, 6623.395508, -2239.785156, 4.806540, 0.0000, 0.0000, 0.0000);
  148. CreateObject(2996, 6623.336914, -2239.803223, 4.806540, 0.0000, 0.0000, 0.0000);
  149. CreateObject(2997, 6623.270996, -2239.819336, 4.806540, 0.0000, 0.0000, 0.0000);
  150. CreateObject(2998, 6623.391602, -2239.849854, 4.806540, 0.0000, 0.0000, 0.0000);
  151. CreateObject(2999, 6623.313965, -2239.882080, 4.806540, 0.0000, 0.0000, 0.0000);
  152. CreateObject(3000, 6623.365723, -2239.928223, 4.806540, 0.0000, 0.0000, 0.0000);
  153. CreateObject(3001, 6623.203125, -2239.862061, 4.806540, 0.0000, 0.0000, 0.0000);
  154. CreateObject(3002, 6623.109375, -2239.909424, 4.806540, 0.0000, 0.0000, 0.0000);
  155. CreateObject(3003, 6621.914063, -2239.635498, 4.806936, 0.0000, 0.0000, 0.0000);
  156. CreateObject(3004, 6623.238770, -2240.415283, 4.692588, 356.5623, 18.0482, 43.8313);
  157. CreateObject(3100, 6623.237793, -2239.923828, 4.806540, 0.0000, 0.0000, 0.0000);
  158. CreateObject(3101, 6623.300781, -2239.968750, 4.806540, 0.0000, 0.0000, 0.0000);
  159. CreateObject(3102, 6623.356445, -2240.020020, 4.806540, 0.0000, 0.0000, 0.0000);
  160. CreateObject(3103, 6623.165527, -2239.945557, 4.806540, 0.0000, 0.0000, 0.0000);
  161. CreateObject(3104, 6623.216797, -2240.000732, 4.806540, 0.0000, 0.0000, 0.0000);
  162. CreateObject(3105, 6623.350586, -2240.124023, 4.806540, 0.0000, 0.0000, 0.0000);
  163. CreateObject(3106, 6623.298340, -2240.075439, 4.806540, 0.0000, 0.0000, 0.0000);
  164. CreateObject(970, 6591.211426, -2258.544189, 15.927986, 0.0000, 0.0000, 0.0000);
  165. CreateObject(970, 6595.339355, -2258.536377, 15.927986, 0.0000, 0.0000, 0.0000);
  166. CreateObject(970, 6599.493652, -2258.538574, 15.927986, 0.0000, 0.0000, 0.0000);
  167. CreateObject(970, 6603.658691, -2258.542725, 15.927986, 0.0000, 0.0000, 0.0000);
  168. CreateObject(970, 6607.809082, -2258.534424, 15.927986, 0.0000, 0.0000, 0.0000);
  169. CreateObject(970, 6611.981445, -2258.550049, 15.927986, 0.0000, 0.0000, 0.0000);
  170. CreateObject(970, 6616.123047, -2258.548584, 15.927986, 0.0000, 0.0000, 0.0000);
  171. CreateObject(970, 6618.220215, -2258.564209, 15.927986, 0.0000, 0.0000, 0.0000);
  172. CreateObject(970, 6620.275391, -2260.583252, 15.977985, 0.0000, 0.0000, 270.0000);
  173. CreateObject(970, 6589.106445, -2260.623047, 15.927986, 0.0000, 0.0000, 270.0000);
  174. CreateObject(970, 6610.537109, -2235.856689, 16.102983, 0.0000, 0.0000, 0.0000);
  175. CreateObject(970, 6606.375488, -2235.840332, 16.092697, 0.0000, 0.0000, 0.0000);
  176. CreateObject(970, 6602.221191, -2235.851318, 16.095488, 0.0000, 0.0000, 0.0000);
  177. CreateObject(970, 6598.055176, -2235.877686, 16.102983, 0.0000, 0.0000, 0.0000);
  178. CreateObject(970, 6593.885742, -2235.876221, 16.099922, 0.0000, 0.0000, 0.0000);
  179. CreateObject(970, 6590.632324, -2235.869629, 16.096277, 0.0000, 0.0000, 0.0000);
  180. CreateObject(1775, 6611.552246, -2263.409180, 4.755722, 0.0000, 0.0000, 180.0000);
  181. CreateObject(1209, 6609.565430, -2263.614746, 3.658686, 0.0000, 0.0000, 180.0000);
  182. CreateObject(1216, 6626.443848, -2257.166016, 4.350688, 0.0000, 0.0000, 180.0000);
  183. CreateObject(1216, 6625.622559, -2256.320801, 4.350688, 0.0000, 0.0000, 90.0001);
  184. CreateObject(3528, 6622.973145, -2252.617920, 11.770466, 0.0000, 8.5944, 176.5623);
  185. // Objects Outside The Club
  186. CreateObject(3472, 1525.339844, 701.682983, 10.039474, 0.0000, 0.0000, 0.0000);
  187. CreateObject(3472, 1483.827148, 717.286804, 10.064474, 0.0000, 0.0000, 0.0000);
  188. CreateObject(3472, 1445.732056, 691.961853, 10.064474, 0.0000, 0.0000, 0.0000);
  189. CreateObject(9241, 1381.392334, 749.639221, 11.579208, 0.0000, 0.0000, 0.0000);
  190. CreateObject(9241, 1381.434570, 711.200806, 11.579212, 0.0000, 0.0000, 0.0000);
  191. CreateObject(3471, 1454.572388, 745.966125, 11.247978, 0.0000, 0.0000, 180.0000);
  192. CreateObject(3471, 1454.574219, 756.053650, 11.247978, 0.0000, 0.0000, 180.0000);
  193. AddStaticVehicle(451,1412.9138,784.7481,10.5264,271.5140,0,0); // club Turismo
  194. AddStaticVehicle(415,1412.8516,765.5968,10.5910,89.0702,3,3); // club Cheeta
  195. AddStaticVehicle(411,1412.7379,749.4823,10.5474,270.1966,1,1); // club Infernus
  196. AddStaticVehicle(562,1445.5883,787.7720,10.4799,0.7831,17,1); // club elegy
  197. AddStaticVehicle(603,1483.9855,787.7476,10.6585,0.6686,0,6); // club phoenix
  198. AddStaticVehicle(402,1464.7178,787.6215,10.6519,180.6069,2,2); // club buffalo
  199. AddStaticVehicle(475,1509.4386,787.5639,10.6228,178.9811,3,3); // club sabre
  200. AddStaticVehicle(560,1528.7361,787.9233,10.5251,359.7676,65,65); // club sultan
  201. AddStaticVehicle(429,1544.6290,787.7186,10.5000,179.3832,3,1); // club banshee
  202. AddStaticVehicle(480,1412.9701,714.6652,10.5937,88.5446,6,6); // club comet
  203. AddStaticVehicle(565,1412.7566,695.4633,10.4425,270.7047,4,4); // club flash
  204. AddStaticVehicle(541,1412.8969,676.1774,10.4454,90.0576,3,1); // club bullet
  205. AddStaticVehicle(409,1364.2861,699.5326,10.6261,0.2042,0,0); // club stretch
  206. AddStaticVehicle(409,1364.1740,737.9093,10.6203,0.3700,0,0); // club stretch
  207. AddStaticVehicle(487,1381.8092,748.5519,13.5840,132.5554,6,6); // club heli
  208. return 1;
  209. }
  210.  
  211. public OnPlayerCommandText(playerid, cmdtext[])
  212. {
  213. if(strcmp("/waiter", cmdtext, true) == 0)
  214. {
  215. if(PlayerToPoint(2.0,playerid,6630.7549,-2249.8284,4.6624))
  216. {
  217. SetPlayerPos(playerid,6632.2192,-2252.2297,4.7093);
  218. SendClientMessage(playerid,COLOR_GREEN, "You have started waitering!");
  219. return 1;
  220. }
  221. else
  222. {
  223. SendClientMessage(playerid,COLOR_RED, "You are not by the room door!");
  224. return 1;
  225. }
  226. }
  227. if(strcmp("/waiterexit", cmdtext, true) == 0)
  228. {
  229. if(PlayerToPoint(2.0,playerid,6632.5845,-2252.3137,4.7093))
  230. {
  231. SetPlayerPos(playerid,6630.7549,-2249.8284,4.6624);
  232. SendClientMessage(playerid,COLOR_RED, "You have stopped waitering!");
  233. return 1;
  234. }
  235. else
  236. {
  237. SendClientMessage(playerid,COLOR_RED, "You are not by the room door!");
  238. return 1;
  239. }
  240. }
  241. if(strcmp("/exitclub", cmdtext, true) == 0)
  242. {
  243. if(PlayerToPoint(2.0,playerid,6628.2798,-2256.7510,4.6587))
  244. {
  245. SetPlayerPos(playerid,1450.1606,750.8176,11.0234);
  246. SendClientMessage(playerid,COLOR_GREEN, "You have left the club!");
  247. return 1;
  248. }
  249. else
  250. {
  251. SendClientMessage(playerid,COLOR_RED, "You are not by the doors!");
  252. return 1;
  253. }
  254. }
  255. if (strcmp(cmdtext, "/club", true)==0) // Command (changable)
  256. {
  257. if(IsPlayerAdmin(playerid))
  258. {
  259. SetPlayerPos(playerid, 6628.3804,-2255.0850,4.6587);
  260. SendClientMessage(playerid, COLOR_GREEN, "Welcome To [SAP]Sidhu's Club");
  261. return 1;
  262. }
  263. else
  264. {
  265. SendClientMessage(playerid, COLOR_RED, "You are not a RCON Admin!");
  266. return 1;
  267. }
  268. }
  269. if (strcmp(cmdtext, "/clubcmds", true)==0) // Command (changable)
  270. {
  271. SendClientMessage(playerid, COLOR_GREEN, "[__________Jizzy's Club Commands!__________]");
  272. SendClientMessage(playerid, COLOR_GREEN, "/Club - Admins only (to tele to the club)");
  273. SendClientMessage(playerid, COLOR_GREEN, "/Waiter - To waiter (use by the room by the entrance)");
  274. SendClientMessage(playerid, COLOR_GREEN, "/Waiterexit - To exit waitering (go to the room door)");
  275. SendClientMessage(playerid, COLOR_GREEN, "/ExitClub - Exit the club (by the entrance doors)");
  276. return 1;
  277. }
  278. return 0;
  279. }
  280.  
  281. public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
  282. {
  283. new Float:oldposx, Float:oldposy, Float:oldposz;
  284. new Float:tempposx, Float:tempposy, Float:tempposz;
  285. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  286. tempposx = (oldposx -x);
  287. tempposy = (oldposy -y);
  288. tempposz = (oldposz -z);
  289. if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  290. {
  291. return 1;
  292. }
  293. return 0;
  294. }
  295.  
  296. public OnPlayerPickUpPickup(playerid, pickupid)
  297. {
  298. if( pickupid == clubint) {
  299. SetPlayerPos(playerid,6628.1372,-2254.7288,4.6587);
  300. }
  301. return 1;
  302. }
  303.  
  304. #endif
Advertisement
Add Comment
Please, Sign In to add comment