Guest User

SAP Sidhu

a guest
Mar 10th, 2008
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 7.30 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. new sidshouse1;
  15. new sidshouse2;
  16. new sidsexit1;
  17. new sidsexit2;
  18. #if defined FILTERSCRIPT
  19. main()
  20. {
  21. }
  22.  
  23. public OnPlayerConnect(playerid)
  24. {
  25.     SendClientMessage(playerid, COLOR_YELLOW, "This script was made by [SAP]Sidhu!");
  26.     SendClientMessage(playerid, COLOR_YELLOW, "To teleport to the Desert City, type /vma");
  27.     SendClientMessage(playerid, COLOR_YELLOW, "To teleport to the Desert City Sky Dive, type /vmasky");
  28.     return 1;
  29. }
  30.  
  31.  
  32. public OnFilterScriptInit()
  33. {
  34.     sidsexit2 = CreatePickup(1239,2,-265.3551,1458.3435,1084.3672);
  35.     sidsexit1 = CreatePickup(1239,2,137.2225,1366.9868,1083.8616);
  36.     sidshouse2 =  CreatePickup(1239,2,408.5029,2503.4087,17.3084);
  37.     sidshouse1 = CreatePickup(1239,2,132.8963,2530.1982,17.7033);
  38.     CreateObject(3605, -63.684052, 2504.699463, 21.589987, 0.0000, 0.0000, 90.2409);
  39.     CreateObject(3607, 417.766510, 2504.506104, 21.589987, 0.0000, 0.0000, 89.3814);
  40.     CreateObject(9259, 129.921204, 2469.094727, 21.688206, 0.0000, 0.0000, 271.4780);
  41.     CreateObject(9270, 128.533661, 2535.991699, 21.919170, 0.0000, 0.0000, 271.4782);
  42.     CreateObject(10992, 80.095108, 2527.520264, 21.462299, 0.0000, 0.0000, 0.0000);
  43.     CreateObject(10992, 45.872307, 2527.448486, 21.462299, 0.0000, 0.0000, 0.0000);
  44.     CreateObject(10992, 11.635017, 2527.742432, 21.462299, 0.0000, 0.0000, 0.0000);
  45.     CreateObject(10992, -22.563259, 2527.698730, 21.462299, 0.0000, 0.0000, 0.0000);
  46.     CreateObject(10992, 91.146210, 2476.594971, 21.462299, 0.0000, 0.0000, 179.6224);
  47.     CreateObject(10992, 56.751106, 2476.775635, 21.462299, 0.0000, 0.0000, 179.6224);
  48.     CreateObject(10992, 22.302931, 2476.983887, 21.470108, 0.0000, 0.0000, 179.6224);
  49.     CreateObject(10992, -12.002090, 2477.279541, 21.462299, 0.0000, 0.0000, 179.6224);
  50.     CreateObject(10992, 243.880493, 2476.620117, 21.462296, 0.0000, 0.0000, 179.6224);
  51.     CreateObject(10992, 175.319138, 2477.089600, 21.462299, 0.0000, 0.0000, 179.6224);
  52.     CreateObject(10992, 209.785706, 2476.980957, 21.462297, 0.0000, 0.0000, 179.6224);
  53.     CreateObject(10992, 278.283325, 2476.401855, 21.462299, 0.0000, 0.0000, 179.6224);
  54.     CreateObject(10992, 312.740356, 2476.036377, 21.470093, 0.0000, 0.0000, 179.6224);
  55.     CreateObject(10992, 347.201355, 2475.820801, 21.462299, 0.0000, 0.0000, 179.6224);
  56.     CreateObject(10992, 164.316727, 2527.380371, 21.773720, 0.0000, 0.0000, 0.0000);
  57.     CreateObject(10992, 198.281631, 2527.297607, 21.780527, 0.0000, 0.0000, 0.0000);
  58.     CreateObject(10992, 232.290771, 2527.087158, 21.758537, 0.0000, 0.0000, 0.0000);
  59.     CreateObject(3461, 404.161896, 2522.607422, 19.062263, 0.0000, 0.0000, 0.0000);
  60.     CreateObject(3461, 403.651001, 2485.091797, 19.062132, 0.0000, 0.0000, 0.0000);
  61.     CreateObject(3524, -52.870804, 2519.315918, 30.510262, 0.0000, 0.0000, 87.6625);
  62.     CreateObject(3524, -52.627548, 2488.729736, 30.468027, 0.0000, 0.0000, 87.6625);
  63.     CreateObject(3528, -57.464329, 2504.181396, 29.021441, 0.0000, 0.0000, 0.0000);
  64.     CreateObject(3249, 364.184448, 2537.836670, 15.670506, 0.0000, 0.0000, 0.0000);
  65.     CreateObject(2714, 365.198853, 2528.852295, 17.683548, 0.0000, 0.0000, 0.0000);
  66.     CreateObject(2714, 363.157593, 2528.852295, 17.707256, 0.0000, 0.0000, 0.0000);
  67.     CreateObject(10281, 364.305054, 2529.487793, 21.126156, 0.0000, 0.0000, 0.0000);
  68.     CreateObject(4550, 522.268555, 2518.230469, 91.509415, 0.0000, 0.0000, 0.0000);
  69.     CreateObject(1231, -10.502724, 2502.848633, 18.214767, 0.0000, 0.0000, 88.5219);
  70.     CreateObject(1231, 8.760288, 2502.926025, 18.214767, 0.0000, 0.0000, 88.5219);
  71.     CreateObject(1231, 28.207375, 2502.512695, 18.222576, 0.0000, 0.0000, 88.5219);
  72.     CreateObject(1231, 64.911392, 2502.365723, 18.214767, 0.0000, 0.0000, 88.5219);
  73.     CreateObject(1231, 125.384995, 2502.634521, 18.214767, 0.0000, 0.0000, 88.5219);
  74.     CreateObject(1231, 86.117126, 2502.334473, 18.214767, 0.0000, 0.0000, 88.5219);
  75.     CreateObject(1231, 106.502335, 2502.666016, 18.214767, 0.0000, 0.0000, 88.5219);
  76.     CreateObject(1231, 164.985535, 2502.695557, 18.214767, 0.0000, 0.0000, 88.5219);
  77.     CreateObject(1231, 185.893967, 2502.622070, 18.214767, 0.0000, 0.0000, 88.5219);
  78.     CreateObject(1231, 144.863907, 2502.734375, 18.214767, 0.0000, 0.0000, 88.5219);
  79.     CreateObject(1231, 48.364552, 2502.388428, 18.214767, 0.0000, 0.0000, 88.5219);
  80.     CreateObject(1231, 204.749176, 2502.568359, 18.214767, 0.0000, 0.0000, 88.5219);
  81.     CreateObject(1231, 243.776245, 2502.518799, 18.214767, 0.0000, 0.0000, 88.5219);
  82.     CreateObject(1231, 264.201172, 2502.581055, 18.214767, 0.0000, 0.0000, 88.5219);
  83.     CreateObject(1231, 281.806824, 2502.681396, 18.214767, 0.0000, 0.0000, 88.5219);
  84.     CreateObject(1231, 302.162201, 2502.644775, 18.214767, 0.0000, 0.0000, 88.5219);
  85.     CreateObject(1231, 225.829071, 2502.772461, 18.214767, 0.0000, 0.0000, 88.5219);
  86.     CreateObject(1231, 344.423035, 2502.616455, 18.214767, 0.0000, 0.0000, 88.5219);
  87.     CreateObject(1231, 323.623230, 2502.685791, 18.214767, 0.0000, 0.0000, 88.5219);
  88.     CreateObject(1231, 368.105957, 2502.674561, 18.214767, 0.0000, 0.0000, 88.5219);
  89.     AddStaticPickup(371,2,496.23,2514.06,223.02);//para
  90.     CreateVehicle(475, 401.16, 2518.04, 16.48, 88.84, 3, 0, 60);
  91.     CreateVehicle(541, 401.33, 2490.32, 16.48, 84.45, 0, 0, 60);
  92.     CreateVehicle(415, -48.47, 2511.47, 16.48, 270.00, 79, 79, 60);
  93.     CreateVehicle(451, -43.24, 2503.47, 16.48, 267.47, 1, 1, 60);
  94.     CreateVehicle(411, -49.69, 2495.33, 16.48, 267.47, 93, 93, 60);
  95.     CreateVehicle(480, 120.52, 2477.06, 16.48,  2.45, 0, 0, 60);
  96.     CreateVehicle(534, 119.85, 2528.27, 16.81,  186.04, 3, 0, 60);
  97.     CreateVehicle(535, 137.51, 2529.57, 16.80,  176.02, 126, 126, 60);
  98.     CreateVehicle(555, 138.92, 2475.99, 16.48,  2.14, 86, 86, 60);
  99.     CreateVehicle(477, 400.20, 2503.64, 16.48,  89.48, 114, 114, 60);
  100.     CreateVehicle(520, 291.84, 2542.46, 16.82,  180.61, 0, 0, 60);
  101.     CreateVehicle(520, 324.60, 2542.46, 16.82,  180.61, 0, 0, 60);
  102.     return 1;
  103. }
  104.  
  105. public OnFilterScriptExit()
  106. {
  107.     return 1;
  108. }
  109.  
  110. #else
  111.  
  112. main()
  113. {
  114.     print("\n----------------------------------");
  115.     print(" Blank Gamemode by your name here");
  116.     print("----------------------------------\n");
  117. }
  118.  
  119. #endif
  120.  
  121.  
  122. public OnPlayerCommandText(playerid, cmdtext[])
  123. {
  124.  
  125. if (strcmp("/vma", cmdtext, true, 10) == 0)
  126.     {
  127.         SetPlayerPos(playerid, 201.92,2505.97,16.48);
  128.         SetPlayerFacingAngle(playerid, 179.4);
  129.         return 1;
  130.     }
  131. if (strcmp("/vmasky", cmdtext, true, 10) == 0)
  132.     {
  133.         SetPlayerPos(playerid, 499.62,2514.39,223.02);
  134.         SetPlayerFacingAngle(playerid, 104.50);
  135.         return 1;
  136.     }
  137.    
  138.  
  139.  
  140. return 0;
  141.     }
  142.  
  143. public OnPlayerPickUpPickup(playerid, pickupid)
  144. {
  145.  
  146. if( pickupid == sidsexit2) {
  147.   SetPlayerInterior(playerid, 0);
  148.   SetPlayerVirtualWorld(playerid,playerid+0);
  149.   SetPlayerPos(playerid,407.0768,2510.1758,17.3084);
  150.  
  151. }
  152.  
  153. if( pickupid == sidsexit1) {
  154.   SetPlayerInterior(playerid, 0);
  155.   SetPlayerPos(playerid,124.9585,2530.7146,17.7033);
  156.  
  157. }
  158.  
  159. if( pickupid == sidshouse1) {
  160.   SetPlayerInterior(playerid, 5);
  161.   SetPlayerPos(playerid,143.9087,1368.3718,1083.8619);
  162.  
  163. }
  164. if( pickupid == sidshouse2) {
  165.   SetPlayerInterior(playerid, 4);
  166.   SetPlayerPos(playerid, -261.5049,1454.0552,1084.36723 );
  167.  
  168. }
  169. return 1;
  170. }
Advertisement
Add Comment
Please, Sign In to add comment