Guest User

Souvlaki

a guest
Feb 9th, 2010
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.38 KB | None | 0 0
  1. /*
  2. ///3333////3333///3//3/3/3/3/33//3///3/33/3/3/3//3/3/3/3/
  3. [FS/Map]Jefferson Motel Volume 1 for any kind of server
  4. //3///3/3/I dont give a shit if you claim it as yours//3//3//3/3/
  5. */
  6.  
  7.  
  8. #include <a_samp>
  9.  
  10. #define COLOR_BLUE 0x2641FEAA
  11. #define FILTERSCRIPT
  12. forward GateClose();
  13. new gate;
  14. public OnFilterScriptInit()
  15. {
  16.  
  17.     gate = CreateObject(976, 2216.3156738281, -1142.8746337891, 24.80749130249, 0.0000, 0.0000, 342.13500976563);
  18.     CreateObject(976, 2225.0139160156, -1145.4725341797, 24.800163269043, 0.0000, 0.0000, 342.13500976563);
  19.     CreateObject(987, 2233.0385742188, -1148.4926757813, 24.796875, 0.8594, 0.0000, 292.50997924805);
  20.     CreateObject(976, 2208.5114746094, -1141.3946533203, 24.77518081665, 0.0000, 0.0000, 352.05999755859);
  21.     CreateObject(12957, 2229.1323242188, -1176.2789306641, 25.604780197144, 0, 0, 268.69067382813);
  22.     CreateObject(1337, 2224.0581054688, -1180.8486328125, 25.390625, 0, 0, 183.33630371094);
  23.     CreateObject(4003, 2218.3598632813, -1180.8125, 33.169013977051, 0, 0, 0);
  24.     CreateObject(1216, 2232.6530761719, -1161.392578125, 25.582628250122, 0, 0, 270.67565917969);
  25.     CreateObject(1216, 2232.6218261719, -1162.6419677734, 25.582628250122, 0, 0, 270.67565917969);
  26.     CreateObject(1216, 2232.5905761719, -1163.8909912109, 25.582628250122, 0, 0, 270.67565917969);
  27.     CreateObject(1216, 2232.5593261719, -1165.1400146484, 25.582628250122, 0, 0, 270.67565917969);
  28.     CreateObject(1258, 2247.5139160156, -1147.1280517578, 25.883485794067, 0, 0, 346.10510253906);
  29.     CreateObject(1257, 2239.9482421875, -1145.8197021484, 26.110404968262, 0, 0, 254.79577636719);
  30.     CreateObject(1340, 2205.5678710938, -1136.8773193359, 25.936660766602, 0, 0, 73.444580078125);
  31.     CreateObject(1302, 2201.1745605469, -1157.3815917969, 24.857566833496, 0, 0, 87.339508056641);
  32.     CreateObject(1775, 2201.3383789063, -1158.8469238281, 25.956624984741, 0, 0, 89.324493408203);
  33.     CreateObject(1776, 2201.1547851563, -1155.7058105469, 25.971702575684, 0, 0, 89.324493408203);
  34.     CreateObject(8330, 2218.4987792969, -1181.0942382813, 36.216728210449, 0, 0, 0);
  35.     CreateObject(7597, 2233.5895996094, -1150.8034667969, 42.740829467773, 0, 0, 0);
  36.     CreateObject(7597, 2208.005859375, -1138.6141357422, 42.740829467773, 0, 0, 0);
  37.     CreateObject(7313, 2231.859375, -1160.8510742188, 27.510679244995, 0, 0, 270.67565917969);
  38.     CreateObject(8530, 2217.3566894531, -1151.6330566406, 30.740827560425, 0, 0, 264.720703125);
  39.     CreateObject(14467, 2185.8432617188, -1133.5991210938, 39.835353851318, 0, 0, 254.79577636719);
  40.     CreateObject(17042, 2245.1489257813, -1150.9403076172, 33.146968841553, 0, 0, 328.240234375);
  41.     print("\n--------------------------------------");
  42.     print("------------Jefferson Hotel-------------");
  43.     print("--------------by Souvlaki----------------");
  44.     print("---------------Version 1----------\n");
  45.     return 1;
  46. }
  47.  
  48. public OnFilterScriptExit()
  49. {
  50.     return 1;
  51. }
  52.  
  53. public OnPlayerCommandText(playerid, cmdtext[])
  54. {
  55.     if (strcmp(cmdtext, "/motelgate", true)==0)
  56.     {
  57.         MoveObject(gate,2225.5759277344, -1146.0582275391, 24.80749130249, 6.5);
  58.         SetTimer("GateClose", 2000, 0);
  59.         SendClientMessage(playerid, COLOR_BLUE,"Motel Gate Opened.It will close soon automaticly");
  60.         return 1;
  61.     }
  62.  
  63.     return 0;
  64. }
  65.  
  66. public GateClose()
  67. {
  68.     MoveObject (gate,2216.3156738281, -1142.8746337891, 24.80749130249, 3.5);
  69.     return 1;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment