Dolfwagos

SF_House_Tele_gates

Jun 5th, 2012
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.83 KB | None | 0 0
  1. //===================// Leave this in
  2. //===Credits To=====//
  3. //===Dolfwagos=====//
  4. //================//
  5.  
  6. //=========INCLUDES===========
  7. #include <a_samp>
  8. //============================
  9. //=========DEFINES============
  10. #define green       0x008000FF //---this is the green colour Don't change it
  11. //============================
  12.  
  13. new Gate;
  14.  
  15.  
  16. public OnGameModeInit()
  17. {
  18.  
  19. CreateObject(18769, -2996.11, 471.04, 4.44,   0.00, 8.00, 0.00);
  20. CreateObject(18769, -3015.24, 471.42, 4.44,   0.00, 8.00, 178.27);
  21. CreateObject(5112, -3094.48, 471.62, 0.00,   0.00, 0.00, 0.00);
  22. CreateObject(4867, -3259.34, 460.69, 4.19,   0.00, 0.00, 0.00);
  23. CreateObject(8147, -3366.24, 442.44, 6.57,   0.00, 0.00, 0.00);
  24. CreateObject(8147, -3366.22, 480.47, 6.57,   0.00, 0.00, 0.00);
  25. CreateObject(8147, -3293.41, 552.69, 6.57,   0.00, 0.00, 270.09);
  26. CreateObject(8147, -3227.04, 552.62, 6.57,   0.00, 0.00, 270.09);
  27. CreateObject(8210, -3154.08, 525.11, 6.57,   0.00, 0.00, 270.19);
  28. CreateObject(8147, -3224.26, 370.44, 6.57,   0.00, 0.00, 270.09);
  29. CreateObject(8147, -3293.27, 370.45, 6.57,   0.00, 0.00, 270.09);
  30. CreateObject(8210, -3153.92, 508.17, 6.57,   0.00, 0.00, 270.19);
  31. CreateObject(8210, -3153.66, 434.88, 6.57,   0.00, 0.00, 270.19);
  32. CreateObject(8210, -3153.45, 397.27, 6.57,   0.00, 0.00, 270.19);
  33. CreateObject(3605, -3341.54, 396.94, 10.30,   0.00, 0.00, 133.80);
  34. CreateObject(13754, -3357.90, 522.02, 2.68,   0.00, 0.00, 89.25);
  35. CreateObject(3601, -3250.93, 542.92, 3.88,   0.00, 0.00, 0.00);
  36. CreateObject(971, -3256.63, 545.90, 7.99,   0.00, 0.00, 270.66);
  37. CreateObject(3605, -3179.81, 394.89, 10.30,   0.00, 0.00, 207.90);
  38. CreateObject(16098, -3296.83, 535.34, 8.39,   0.00, 0.00, 271.00);
  39. CreateObject(16098, -3260.80, 388.41, 8.39,   0.00, 0.00, 271.00);
  40. CreateObject(3604, -3350.79, 429.82, 6.70,   0.00, 0.00, 93.39);
  41. CreateObject(3604, -3163.05, 430.84, 6.70,   0.00, 0.00, 268.60);
  42. CreateObject(3461, -3016.33, 480.89, 6.05,   0.00, 0.00, 0.00);
  43. CreateObject(3461, -3015.90, 462.36, 6.05,   0.00, 0.00, 0.00);
  44. CreateObject(1687, -3254.62, 548.98, 12.48,   0.00, 0.00, 358.95);
  45. CreateObject(1687, -3254.76, 546.82, 12.48,   0.00, 0.00, 358.95);
  46. CreateObject(1690, -3252.33, 538.24, 12.40,   0.00, 0.00, 269.20);
  47. CreateObject(1691, -3246.16, 545.58, 12.00,   0.00, 0.00, 0.00);
  48. CreateObject(1687, -3360.24, 518.16, 8.00,   0.00, 0.00, 268.45);
  49. CreateObject(5838, -3169.10, 537.48, 20.71,   0.00, 0.00, 0.00);
  50. CreateObject(10773, -3220.48, 528.22, 6.89,   0.00, 0.00, 320.17);
  51. CreateObject(10838, -3156.22, 472.01, 21.10,   0.00, 0.00, 0.00);
  52. CreateObject(621, -3313.61, 385.95, 2.62,   0.00, 0.00, 0.00);
  53. CreateObject(621, -3346.51, 420.10, 2.62,   0.00, 0.00, 0.00);
  54. CreateObject(621, -3361.75, 374.56, 2.62,   0.00, 0.00, 0.00);
  55. CreateObject(621, -3210.44, 395.47, 2.62,   0.00, 0.00, 0.00);
  56. CreateObject(621, -3162.79, 417.96, 2.62,   0.00, 0.00, 0.00);
  57. CreateObject(621, -3298.16, 544.84, 2.62,   0.00, 0.00, 0.00);
  58. CreateObject(621, -3297.76, 535.23, 2.62,   0.00, 0.00, 0.00);
  59. CreateObject(621, -3297.14, 525.20, 2.62,   0.00, 0.00, 0.00);
  60. CreateObject(1350, -3162.53, 466.13, 3.44,   0.00, 0.00, 274.61);
  61. CreateObject(1350, -3162.29, 477.37, 4.23,   0.00, 0.00, 83.36);
  62. CreateObject(3463, -3218.47, 393.14, 3.74,   0.00, 0.00, 9.78);
  63. CreateObject(3463, -3304.15, 391.02, 3.74,   0.00, 0.00, 9.78);
  64. CreateObject(3463, -3334.23, 532.93, 3.74,   0.00, 0.00, 9.78);
  65. CreateObject(3463, -3194.69, 533.19, 3.74,   0.00, 0.00, 9.78);
  66. CreateObject(3463, -3120.31, 471.59, 3.74,   0.00, 0.00, 92.25);
  67. CreateObject(3463, -3101.19, 471.58, 3.74,   0.00, 0.00, 92.25);
  68. CreateObject(3463, -3074.77, 471.66, 3.74,   0.00, 0.00, 92.25);
  69. CreateObject(3463, -3041.16, 471.66, 3.74,   0.00, 0.00, 92.25);
  70. CreateObject(3463, -3140.77, 471.59, 3.74,   0.00, 0.00, 92.25);
  71. CreateObject(971, -3153.86, 462.33, 7.75,   0.00, 0.00, 89.46);
  72. CreateObject(971, -3153.44, 480.88, 7.75,   0.00, 0.00, 89.46);
  73.  
  74.  
  75.  
  76. Gate = CreateObject(969, -3153.72, 467.12, 4.50,   0.00, 0.00, 87.77);
  77.  
  78.  
  79.    
  80. return 1;
  81. }
  82.  
  83. public OnPlayerCommandText(playerid, cmdtext[])
  84. {
  85.    
  86.     if (strcmp(cmdtext,"/open", true , 5) ==0)//--- You may change this to anything
  87.     {
  88.     MoveObject(Gate, -3153.5198, 476.7097, 4.4972, 5, -1000.0, -1000.0);
  89.     SendClientMessage(playerid,green,"You have Opened the gate!");//--- this is the message when you open
  90.     return 1;
  91.     }
  92.    
  93.     if (strcmp(cmdtext,"/close", true , 6) ==0)//--- You may change this to anything
  94.     {
  95.     MoveObject(Gate, -3153.7246, 467.1180, 4.4972, 5, -1000.0, -1000.0);
  96.     SendClientMessage(playerid,green,"You have Closed the gate!");//--- this is the message when you close
  97.     return 1;
  98.     }
  99.  
  100.     if (strcmp(cmdtext,"/house", true , 6) ==0)//--- You may change this to anything
  101.     {
  102.     SetPlayerPos(playerid,-3134.9043, 470.7294, 6.5521);
  103.     SendClientMessage(playerid,green,"Welcome to the house!");//--- this is the message when you teleport
  104.     return 1;
  105.     }
  106.  
  107.     return 1;
  108. }
Advertisement
Add Comment
Please, Sign In to add comment