Dolfwagos

House_V1.2

May 17th, 2012
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.73 KB | None | 0 0
  1. //Credits all Go to Me (Dolfwagos)
  2. //Do not remove this piece
  3.  
  4.  
  5.  
  6. #include <a_players>
  7. #include <a_samp>
  8.  
  9. new Gate;
  10.  
  11. #define Y 0xFFFF00AA
  12. #define R 0xAA3333AA
  13.  
  14. public OnFilterScriptInit()
  15. {
  16.  
  17. //------------------Created Objects-------------------------------
  18.  
  19. CreateObject(8210, -333.93, 1508.52, 76.83,   0.00, 0.00, 359.56);
  20. CreateObject(8210, -376.56, 1508.53, 76.83,   0.00, 0.00, 359.56);
  21. CreateObject(8210, -403.87, 1535.15, 76.83,   0.00, 0.00, 89.15);
  22. CreateObject(8210, -396.01, 1588.57, 76.83,   0.00, 0.00, 74.10);
  23. CreateObject(8210, -364.47, 1624.13, 75.57,   0.00, 0.00, 23.86);
  24. CreateObject(8210, -318.35, 1617.11, 75.57,   0.00, 0.00, 317.73);
  25. CreateObject(8210, -277.13, 1579.73, 75.57,   0.00, 0.00, 317.73);
  26. CreateObject(8210, -257.42, 1561.68, 75.57,   0.00, 0.00, 317.73);
  27. CreateObject(8210, -260.78, 1528.70, 75.57,   0.00, 0.00, 209.92);
  28. CreateObject(8210, -272.90, 1521.36, 75.57,   0.00, 0.00, 209.92);
  29. CreateObject(3265, -308.55, 1502.86, 74.37,   0.00, 0.00, 0.00);
  30. CreateObject(3265, -291.75, 1457.08, 72.90,   0.00, 0.00, 0.00);
  31. CreateObject(1290, -311.22, 1538.45, 79.37,   0.00, 0.00, 0.00);
  32. CreateObject(1290, -289.25, 1535.05, 79.37,   0.00, 0.00, 0.00);
  33. CreateObject(1290, -294.32, 1491.97, 79.37,   0.00, 0.00, 0.00);
  34. CreateObject(1290, -357.86, 1565.79, 79.37,   0.00, 0.00, 0.00);
  35. CreateObject(1290, -307.20, 1473.77, 79.37,   0.00, 0.00, 0.00);
  36. CreateObject(1290, -290.26, 1452.83, 78.55,   0.00, 0.00, 0.00);
  37. CreateObject(1290, -302.43, 1435.58, 77.28,   0.00, 0.00, 0.00);
  38. CreateObject(1290, -288.36, 1406.03, 76.77,   0.00, 0.00, 0.00);
  39. CreateObject(8210, -396.01, 1588.57, 74.63,   0.00, 0.00, 74.10);
  40. CreateObject(8210, -364.47, 1624.13, 73.84,   0.00, 0.00, 23.86);
  41. CreateObject(8210, -318.35, 1617.11, 75.57,   0.00, 0.00, 317.73);
  42. CreateObject(8210, -318.35, 1617.11, 73.37,   0.00, 0.00, 317.73);
  43. CreateObject(8210, -335.24, 1508.50, 76.83,   0.00, 0.00, 359.56);
  44. CreateObject(3526, -346.61, 1573.97, 75.40,   0.00, 0.00, 0.00);
  45. CreateObject(3526, -325.97, 1594.72, 75.40,   0.00, 0.00, 0.00);
  46. CreateObject(3526, -346.73, 1615.02, 75.40,   0.00, 0.00, 0.00);
  47. CreateObject(3526, -368.08, 1594.90, 76.20,   0.00, 0.00, 0.00);
  48. CreateObject(2780, -296.87, 1506.99, 74.40,   0.00, 0.00, 328.98);
  49. CreateObject(2780, -307.73, 1506.53, 74.40,   0.00, 0.00, 58.63);
  50. CreateObject(3461, -295.25, 1497.86, 76.05,   0.00, 0.00, 0.00);
  51. CreateObject(3461, -307.79, 1498.03, 76.05,   0.00, 0.00, 0.00);
  52. CreateObject(3461, -306.96, 1489.06, 76.05,   0.00, 0.00, 0.00);
  53. CreateObject(3461, -294.60, 1489.56, 76.05,   0.00, 0.00, 0.00);
  54. CreateObject(1278, -347.53, 1561.33, 86.09,   0.00, 0.00, 166.02);
  55. CreateObject(1278, -313.44, 1595.54, 86.09,   0.00, 0.00, 275.15);
  56. CreateObject(1278, -347.23, 1629.55, 86.09,   0.00, 0.00, 4.91);
  57. CreateObject(1278, -381.39, 1595.54, 86.09,   0.00, 0.00, 106.26);
  58. CreateObject(2892, -360.46, 1532.29, 74.33,   0.00, 0.00, 339.27);
  59. CreateObject(2589, -344.97, 1546.42, 79.90,   0.00, 0.00, 0.00);
  60. CreateObject(2589, -341.39, 1546.15, 79.90,   0.00, 0.00, 0.00);
  61. CreateObject(2589, -344.79, 1542.87, 79.90,   0.00, 0.00, 0.00);
  62. CreateObject(2589, -341.22, 1542.79, 79.90,   0.00, 0.00, 0.00);
  63. CreateObject(2589, -341.36, 1540.24, 80.13,   0.00, 0.00, 0.00);
  64. CreateObject(2589, -344.63, 1540.62, 79.90,   0.00, 0.00, 0.00);
  65. CreateObject(8210, -333.93, 1508.52, 76.83,   0.00, 0.00, 359.56);
  66. CreateObject(1686, -299.61, 1535.44, 74.50,   0.00, 0.00, 89.25);
  67. CreateObject(1686, -296.66, 1535.35, 74.50,   0.00, 0.00, 89.25);
  68. CreateObject(1622, -317.07, 1537.11, 78.11,   0.00, 0.00, 110.33);
  69. CreateObject(1622, -336.03, 1537.12, 78.11,   0.00, 0.00, 110.33);
  70. CreateObject(13592, -260.19, 1519.03, 84.12,   0.00, 0.00, 218.13);
  71. CreateObject(1225, -346.95, 1511.90, 74.70,   0.00, 0.00, 0.00);
  72. CreateObject(1225, -347.05, 1513.23, 74.70,   0.00, 0.00, 0.00);
  73. CreateObject(1225, -347.05, 1514.57, 74.70,   0.00, 0.00, 0.00);
  74. CreateObject(1225, -347.02, 1515.97, 74.70,   0.00, 0.00, 0.00);
  75. CreateObject(1225, -347.06, 1517.24, 74.70,   0.00, 0.00, 0.00);
  76. CreateObject(1290, -303.65, 1404.46, 76.77,   0.00, 0.00, 0.00);
  77. CreateObject(1290, -303.56, 1388.52, 76.77,   0.00, 0.00, 277.11);
  78. CreateObject(1290, -326.71, 1400.89, 75.00,   0.00, 0.00, 220.87);
  79. CreateObject(1290, -323.06, 1426.86, 71.60,   0.00, 0.00, 220.87);
  80. CreateObject(1290, -341.51, 1429.06, 71.60,   0.00, 0.00, 220.87);
  81. CreateObject(1290, -336.84, 1451.48, 70.05,   0.00, 0.00, 220.87);
  82. CreateObject(1290, -354.74, 1453.04, 69.22,   0.00, 0.00, 220.87);
  83. CreateObject(2942, -305.10, 1538.39, 75.20,   0.00, 0.00, 314.45);
  84. CreateObject(2828, -314.48, 1536.78, 75.33,   0.00, 0.00, 189.84);
  85. CreateObject(1432, -314.54, 1536.91, 74.70,   0.00, 0.00, 0.00);
  86. CreateObject(8210, -333.93, 1508.52, 76.83,   0.00, 0.00, 359.56);
  87.  
  88.  
  89.  
  90.         Gate=CreateObject(971, -301.64, 1507.90, 77.91,   0.00, 0.00, 0.00);
  91.         return 1;
  92. }
  93.  
  94.  
  95.         public OnPlayerCommandText(playerid, cmdtext[])
  96. {
  97.         if (strcmp(cmdtext,"/open", true, 5) ==0) //----you can change "/open" to anything of your choice
  98.         {
  99.         MoveObject(Gate, -310.7321, 1507.9795, 77.9132 , 3);
  100.         SendClientMessage(playerid,R," You opened the gate"); //----you can change this message to anything of your choice
  101.         return 1;
  102.         }
  103.  
  104.         if (strcmp(cmdtext,"/close", true, 6) ==0) //----you can change "/close" to anything of your choice
  105.         {
  106.         MoveObject(Gate, -301.6442, 1507.8981, 77.9132 , 3);
  107.         SendClientMessage(playerid,R,"You closed the Gate"); //----you can change this message to anything of your choice
  108.         return 1;
  109.         }
  110.  
  111.  
  112.         if (strcmp(cmdtext,"/Changeme", true, 10) ==0) //----change this command to anything you want
  113.         {
  114.         SetPlayerPos(playerid, -301.0754, 1498.2305, 75.3909);
  115.         SendClientMessage(playerid,Y,"---------Change Me--------"); //----change this message
  116.         return 1;
  117.         }
  118.         return 0;
  119. }
Advertisement
Add Comment
Please, Sign In to add comment