Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Credits goes to:
- [SAP]Sidhu, for his awesome idea and programming!
- [SAP]Sidhu Made this!
- DO NOT REMOVE THE STUFF ABOVE, ANY ATTEMP TO DO SO WILL RESULT IN YOU PAYING THE CONSEQUENCES IF CAUGHT
- */
- //===============================Include Files==================================
- #include <a_samp>
- #define FILTERSCRIPT
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_YELLOW 0xFFFF00AA
- #if defined FILTERSCRIPT
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define LIGHT_BLUE 0x33CCFFAA
- #define COLOR_WHITE 0xFFFFFFAA
- new clubint;
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- main()
- {
- }
- public OnPlayerSpawn(playerid)
- {
- SendClientMessage(playerid, LIGHT_BLUE, "This server is running [SAP]Sidhu's Club!");
- SendClientMessage(playerid, LIGHT_BLUE, "Type /clubcmds for help with [SAP]Sidhu's Club commands!");
- return 1;
- }
- public OnFilterScriptInit()
- {
- clubint = CreatePickup(1274, 23, 1454.7213,750.9451,11.0234);
- CreateObject(14533, 6607.237305, -2249.827637, 20.442127, 0.0000, 0.0000, 0.0000);
- CreateObject(14536, 6607.241699, -2249.781250, 20.439936, 0.0000, 0.0000, 0.0000);
- CreateObject(14537, 6605.833496, -2249.160400, 5.331080, 0.0000, 0.0000, 0.0000);
- CreateObject(14546, 6607.244629, -2249.775635, 20.437056, 0.0000, 0.0000, 0.0000);
- CreateObject(14540, 6614.366211, -2244.479980, 4.035219, 0.0000, 0.0000, 90.0000);
- CreateObject(14539, 6608.070801, -2242.131104, 11.277025, 0.0000, 0.0000, 0.0000);
- CreateObject(1455, 6601.349121, -2251.753906, 4.572622, 0.0000, 0.0000, 0.0000);
- CreateObject(1484, 6610.234375, -2252.649658, 4.693694, 355.7028, 30.9397, 19.7670);
- CreateObject(1485, 6610.445801, -2245.822754, 4.615193, 0.0000, 27.5020, 152.8755);
- CreateObject(1486, 6602.477051, -2244.623535, 4.645878, 0.0000, 0.0000, 0.0000);
- CreateObject(1510, 6610.270020, -2245.723633, 4.512716, 0.0000, 0.0000, 0.0000);
- CreateObject(1665, 6603.115723, -2253.649902, 4.512624, 0.0000, 0.0000, 0.0000);
- CreateObject(1666, 6601.372070, -2246.756592, 4.576696, 0.0000, 0.0000, 0.0000);
- CreateObject(1667, 6609.081543, -2244.702881, 4.589509, 0.0000, 0.0000, 0.0000);
- CreateObject(1950, 6608.559570, -2253.576660, 4.689097, 0.0000, 0.0000, 0.0000);
- CreateObject(1557, 6626.829102, -2257.625488, 3.665396, 0.0000, 0.0000, 0.0000);
- CreateObject(1557, 6629.858887, -2257.621338, 3.665396, 0.0000, 0.0000, 180.0000);
- CreateObject(1235, 6602.147461, -2245.515869, 3.888843, 0.0000, 0.0000, 0.0000);
- CreateObject(2780, 6585.968750, -2244.713623, 4.714686, 0.0000, 0.0000, 0.0000);
- CreateObject(2780, 6586.072754, -2252.657715, 4.768061, 0.0000, 0.0000, 180.0000);
- CreateObject(2922, 6631.141602, -2249.039307, 5.090607, 0.0000, 0.0000, 90.0000);
- CreateObject(3027, 6610.175293, -2245.681641, 4.584429, 0.0000, 110.8673, 348.7500);
- CreateObject(3092, 6603.854980, -2248.081299, 20.538544, 93.6786, 0.0000, 1.7189);
- CreateObject(2967, 6610.298340, -2251.487793, 4.490929, 0.0000, 0.0000, 72.1927);
- CreateObject(2604, 6633.753418, -2257.075928, 4.455561, 0.0000, 0.0000, 270.0000);
- CreateObject(2608, 6633.656738, -2254.325684, 4.370158, 0.0000, 0.0000, 0.0000);
- CreateObject(1671, 6632.770020, -2256.278320, 4.152648, 0.0000, 0.0000, 89.2775);
- CreateObject(2578, 6630.185547, -2248.849609, 4.651206, 0.0000, 0.0000, 0.0000);
- CreateObject(2579, 6626.189941, -2248.859863, 4.653706, 0.0000, 0.0000, 0.0000);
- CreateObject(2585, 6625.457031, -2249.412598, 4.631205, 0.0000, 0.0000, 90.0001);
- CreateObject(2581, 6628.161621, -2248.876953, 3.960822, 0.0000, 0.0000, 0.0000);
- CreateObject(2898, 6633.185059, -2256.449951, 3.680628, 0.0000, 0.0000, 0.0000);
- CreateObject(2898, 6633.181641, -2251.035889, 3.679378, 0.0000, 0.0000, 0.0000);
- CreateObject(1808, 6632.086914, -2258.842773, 3.705399, 0.0000, 0.0000, 180.0000);
- CreateObject(2202, 6632.946777, -2251.507324, 3.702250, 0.0000, 0.0000, 0.0000);
- CreateObject(2344, 6633.367188, -2256.835693, 4.813563, 0.0000, 0.0000, 67.5000);
- CreateObject(2003, 6632.822754, -2258.661377, 4.173441, 0.0000, 0.0000, 180.0000);
- CreateObject(2005, 6632.808105, -2258.604980, 4.069458, 0.0000, 0.0000, 180.0000);
- CreateObject(8661, 6634.324219, -2266.229736, 2.093272, 87.1469, 358.2811, 271.7189);
- CreateObject(8661, 6651.166504, -2251.137451, -0.510848, 87.1469, 358.2811, 1.7189);
- CreateObject(2412, 6625.083496, -2256.075684, 3.658686, 0.0000, 0.0000, 270.0000);
- CreateObject(2412, 6625.082031, -2250.653076, 3.658686, 0.0000, 0.0000, 270.0000);
- CreateObject(8661, 6646.685059, -2258.923340, 0.496687, 87.1469, 358.2811, 181.7189);
- CreateObject(2004, 6633.219238, -2258.404541, 4.175407, 0.0000, 0.0000, 143.0441);
- CreateObject(16500, 6631.655762, -2257.941895, 5.392226, 0.0000, 0.0000, 0.0000);
- CreateObject(14651, 6623.072754, -2239.205322, 5.900152, 0.0000, 0.0000, 78.7500);
- CreateObject(1886, 6588.753906, -2241.409912, 18.050508, 37.8152, 359.1406, 55.0039);
- CreateObject(1886, 6589.831543, -2256.046143, 18.032717, 37.8152, 0.0000, 133.7539);
- CreateObject(1886, 6617.324707, -2241.411621, 18.007710, 37.8152, 0.0000, 302.5040);
- CreateObject(1886, 6617.438477, -2256.026855, 18.000513, 37.8152, 0.0000, 235.0040);
- CreateObject(2027, 6621.230469, -2235.604248, 4.202113, 0.0000, 0.0000, 218.9839);
- CreateObject(2027, 6619.059570, -2232.975342, 4.202113, 0.0000, 0.0000, 218.9839);
- CreateObject(2942, 6616.943359, -2263.568359, 4.276585, 0.0000, 0.0000, 180.0000);
- CreateObject(2942, 6597.904297, -2263.554932, 4.301585, 0.0000, 0.0000, 180.0000);
- CreateObject(1659, 6617.004883, -2267.456299, 14.269251, 0.0000, 0.0000, 0.0000);
- CreateObject(1659, 6610.576660, -2267.396973, 14.244255, 0.0000, 0.0000, 0.0000);
- CreateObject(1659, 6604.205078, -2267.386963, 14.244251, 0.0000, 0.0000, 0.0000);
- CreateObject(1659, 6597.937500, -2267.218750, 14.244259, 0.0000, 0.0000, 0.0000);
- CreateObject(1659, 6591.528809, -2267.265137, 14.244263, 0.0000, 0.0000, 0.0000);
- CreateObject(1659, 6591.601074, -2230.966797, 14.244503, 0.0000, 0.0000, 0.0000);
- CreateObject(1659, 6597.921875, -2230.849854, 14.244499, 0.0000, 0.0000, 0.0000);
- CreateObject(1659, 6604.222168, -2230.846924, 14.219492, 0.0000, 0.0000, 0.0000);
- CreateObject(1659, 6610.578125, -2230.907959, 14.244499, 0.0000, 0.0000, 0.0000);
- CreateObject(2580, 6626.466797, -2248.831055, 7.244267, 0.0000, 0.0000, 0.0000);
- CreateObject(2587, 6628.404297, -2248.831055, 7.222802, 0.0000, 0.0000, 0.0000);
- CreateObject(2588, 6630.287109, -2248.806152, 7.248240, 0.0000, 0.0000, 0.0000);
- CreateObject(1978, 6616.576660, -2268.567627, 16.608746, 0.0000, 0.0000, 0.0000);
- CreateObject(1979, 6616.381836, -2267.214600, 16.582306, 0.0000, 0.0000, 0.0000);
- CreateObject(2188, 6612.513184, -2230.820313, 10.566804, 0.0000, 0.0000, 270.0000);
- CreateObject(2640, 6588.931641, -2264.406738, 10.445572, 0.0000, 0.0000, 0.0000);
- CreateObject(2681, 6600.366211, -2264.433838, 9.569010, 0.0000, 0.0000, 0.0000);
- CreateObject(2778, 6589.040527, -2233.878174, 9.594009, 0.0000, 0.0000, 180.0000);
- CreateObject(2779, 6587.139648, -2232.909668, 3.651577, 0.0000, 0.0000, 315.0000);
- CreateObject(2785, 6604.238281, -2266.261719, 16.395975, 0.0000, 0.0000, 0.0000);
- CreateObject(1824, 6576.674805, -2235.668701, 4.169671, 0.0000, 0.0000, 90.0000);
- CreateObject(2350, 6600.375000, -2246.980957, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6600.391113, -2244.928955, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6603.694336, -2243.613281, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6601.889160, -2243.605713, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6600.410156, -2251.485352, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6600.411133, -2253.197266, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6603.772949, -2254.439209, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6601.739258, -2254.460449, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6608.216309, -2254.472168, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6610.132813, -2254.538574, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6611.327637, -2251.328857, 3.847007, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6611.333984, -2253.369141, 3.847007, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6611.199707, -2246.970459, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6611.196289, -2245.161377, 3.847007, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6609.877441, -2243.601318, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2350, 6608.163086, -2243.612549, 3.843337, 0.0000, 0.0000, 0.0000);
- CreateObject(2592, 6631.162598, -2253.558594, 4.564848, 0.0000, 0.0000, 270.0000);
- CreateObject(2724, 6593.098633, -2246.004395, 4.205688, 0.0000, 0.0000, 0.0000);
- CreateObject(2724, 6593.108398, -2252.346680, 4.205688, 0.0000, 0.0000, 180.0000);
- CreateObject(1472, 6610.357910, -2262.731201, 15.791671, 0.0000, 0.0000, 0.0000);
- CreateObject(2146, 6603.900879, -2248.096436, 19.880802, 0.0000, 0.0000, 0.0000);
- CreateObject(2312, 6604.288574, -2261.115234, 6.942739, 0.0000, 0.0000, 180.0000);
- CreateObject(14391, 6606.193359, -2248.906738, 8.242779, 0.0000, 0.0000, 180.0000);
- CreateObject(1663, 6604.583984, -2246.854736, 7.742908, 0.0000, 0.0000, 90.0000);
- CreateObject(1663, 6604.594727, -2249.039307, 7.742908, 0.0000, 0.0000, 90.0000);
- CreateObject(1663, 6604.603516, -2251.241211, 7.742908, 0.0000, 0.0000, 90.0000);
- CreateObject(2312, 6607.404297, -2235.484863, 6.939340, 0.0000, 0.0000, 0.0000);
- CreateObject(2312, 6617.862793, -2240.346436, 7.072357, 0.0000, 0.0000, 308.0471);
- CreateObject(2312, 6613.778320, -2262.914551, 6.473057, 0.0000, 0.0000, 180.7823);
- CreateObject(2312, 6594.674316, -2262.891846, 6.667445, 0.0000, 0.0000, 180.7823);
- CreateObject(2312, 6595.490234, -2249.173096, 9.405905, 0.0000, 0.0000, 90.0000);
- CreateObject(2965, 6623.227051, -2239.900879, 4.715847, 0.0000, 0.0000, 349.6868);
- CreateObject(2995, 6623.395508, -2239.785156, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(2996, 6623.336914, -2239.803223, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(2997, 6623.270996, -2239.819336, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(2998, 6623.391602, -2239.849854, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(2999, 6623.313965, -2239.882080, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3000, 6623.365723, -2239.928223, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3001, 6623.203125, -2239.862061, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3002, 6623.109375, -2239.909424, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3003, 6621.914063, -2239.635498, 4.806936, 0.0000, 0.0000, 0.0000);
- CreateObject(3004, 6623.238770, -2240.415283, 4.692588, 356.5623, 18.0482, 43.8313);
- CreateObject(3100, 6623.237793, -2239.923828, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3101, 6623.300781, -2239.968750, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3102, 6623.356445, -2240.020020, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3103, 6623.165527, -2239.945557, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3104, 6623.216797, -2240.000732, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3105, 6623.350586, -2240.124023, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(3106, 6623.298340, -2240.075439, 4.806540, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6591.211426, -2258.544189, 15.927986, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6595.339355, -2258.536377, 15.927986, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6599.493652, -2258.538574, 15.927986, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6603.658691, -2258.542725, 15.927986, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6607.809082, -2258.534424, 15.927986, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6611.981445, -2258.550049, 15.927986, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6616.123047, -2258.548584, 15.927986, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6618.220215, -2258.564209, 15.927986, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6620.275391, -2260.583252, 15.977985, 0.0000, 0.0000, 270.0000);
- CreateObject(970, 6589.106445, -2260.623047, 15.927986, 0.0000, 0.0000, 270.0000);
- CreateObject(970, 6610.537109, -2235.856689, 16.102983, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6606.375488, -2235.840332, 16.092697, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6602.221191, -2235.851318, 16.095488, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6598.055176, -2235.877686, 16.102983, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6593.885742, -2235.876221, 16.099922, 0.0000, 0.0000, 0.0000);
- CreateObject(970, 6590.632324, -2235.869629, 16.096277, 0.0000, 0.0000, 0.0000);
- CreateObject(1775, 6611.552246, -2263.409180, 4.755722, 0.0000, 0.0000, 180.0000);
- CreateObject(1209, 6609.565430, -2263.614746, 3.658686, 0.0000, 0.0000, 180.0000);
- CreateObject(1216, 6626.443848, -2257.166016, 4.350688, 0.0000, 0.0000, 180.0000);
- CreateObject(1216, 6625.622559, -2256.320801, 4.350688, 0.0000, 0.0000, 90.0001);
- CreateObject(3528, 6622.973145, -2252.617920, 11.770466, 0.0000, 8.5944, 176.5623);
- // Objects Outside The Club
- CreateObject(3472, 1525.339844, 701.682983, 10.039474, 0.0000, 0.0000, 0.0000);
- CreateObject(3472, 1483.827148, 717.286804, 10.064474, 0.0000, 0.0000, 0.0000);
- CreateObject(3472, 1445.732056, 691.961853, 10.064474, 0.0000, 0.0000, 0.0000);
- CreateObject(9241, 1381.392334, 749.639221, 11.579208, 0.0000, 0.0000, 0.0000);
- CreateObject(9241, 1381.434570, 711.200806, 11.579212, 0.0000, 0.0000, 0.0000);
- CreateObject(3471, 1454.572388, 745.966125, 11.247978, 0.0000, 0.0000, 180.0000);
- CreateObject(3471, 1454.574219, 756.053650, 11.247978, 0.0000, 0.0000, 180.0000);
- AddStaticVehicle(451,1412.9138,784.7481,10.5264,271.5140,0,0); // club Turismo
- AddStaticVehicle(415,1412.8516,765.5968,10.5910,89.0702,3,3); // club Cheeta
- AddStaticVehicle(411,1412.7379,749.4823,10.5474,270.1966,1,1); // club Infernus
- AddStaticVehicle(562,1445.5883,787.7720,10.4799,0.7831,17,1); // club elegy
- AddStaticVehicle(603,1483.9855,787.7476,10.6585,0.6686,0,6); // club phoenix
- AddStaticVehicle(402,1464.7178,787.6215,10.6519,180.6069,2,2); // club buffalo
- AddStaticVehicle(475,1509.4386,787.5639,10.6228,178.9811,3,3); // club sabre
- AddStaticVehicle(560,1528.7361,787.9233,10.5251,359.7676,65,65); // club sultan
- AddStaticVehicle(429,1544.6290,787.7186,10.5000,179.3832,3,1); // club banshee
- AddStaticVehicle(480,1412.9701,714.6652,10.5937,88.5446,6,6); // club comet
- AddStaticVehicle(565,1412.7566,695.4633,10.4425,270.7047,4,4); // club flash
- AddStaticVehicle(541,1412.8969,676.1774,10.4454,90.0576,3,1); // club bullet
- AddStaticVehicle(409,1364.2861,699.5326,10.6261,0.2042,0,0); // club stretch
- AddStaticVehicle(409,1364.1740,737.9093,10.6203,0.3700,0,0); // club stretch
- AddStaticVehicle(487,1381.8092,748.5519,13.5840,132.5554,6,6); // club heli
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/waiter", cmdtext, true) == 0)
- {
- if(PlayerToPoint(2.0,playerid,6630.7549,-2249.8284,4.6624))
- {
- SetPlayerPos(playerid,6632.2192,-2252.2297,4.7093);
- SendClientMessage(playerid,COLOR_GREEN, "You have started waitering!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED, "You are not by the room door!");
- return 1;
- }
- }
- if(strcmp("/waiterexit", cmdtext, true) == 0)
- {
- if(PlayerToPoint(2.0,playerid,6632.5845,-2252.3137,4.7093))
- {
- SetPlayerPos(playerid,6630.7549,-2249.8284,4.6624);
- SendClientMessage(playerid,COLOR_RED, "You have stopped waitering!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED, "You are not by the room door!");
- return 1;
- }
- }
- if(strcmp("/exitclub", cmdtext, true) == 0)
- {
- if(PlayerToPoint(2.0,playerid,6628.2798,-2256.7510,4.6587))
- {
- SetPlayerPos(playerid,1450.1606,750.8176,11.0234);
- SendClientMessage(playerid,COLOR_GREEN, "You have left the club!");
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED, "You are not by the doors!");
- return 1;
- }
- }
- if (strcmp(cmdtext, "/club", true)==0) // Command (changable)
- {
- if(IsPlayerAdmin(playerid))
- {
- SetPlayerPos(playerid, 6628.3804,-2255.0850,4.6587);
- SendClientMessage(playerid, COLOR_GREEN, "Welcome To [SAP]Sidhu's Club");
- return 1;
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "You are not a RCON Admin!");
- return 1;
- }
- }
- if (strcmp(cmdtext, "/clubcmds", true)==0) // Command (changable)
- {
- SendClientMessage(playerid, COLOR_GREEN, "[__________Jizzy's Club Commands!__________]");
- SendClientMessage(playerid, COLOR_GREEN, "/Club - Admins only (to tele to the club)");
- SendClientMessage(playerid, COLOR_GREEN, "/Waiter - To waiter (use by the room by the entrance)");
- SendClientMessage(playerid, COLOR_GREEN, "/Waiterexit - To exit waitering (go to the room door)");
- SendClientMessage(playerid, COLOR_GREEN, "/ExitClub - Exit the club (by the entrance doors)");
- return 1;
- }
- return 0;
- }
- public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- return 0;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if( pickupid == clubint) {
- SetPlayerPos(playerid,6628.1372,-2254.7288,4.6587);
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment