Advertisement
Guest User

Tez2k7

a guest
Aug 31st, 2008
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.98 KB | None | 0 0
  1. // Top Of Script
  2. new LSPDBarrier1;
  3. new LSPDGate1;
  4. new SFPDBarrier1;
  5. new SFPDBarrier2;
  6. new SFPDGate1;
  7. new LVPDBarrier1;
  8. new LVPDGate1;
  9. new LVPDGate2;
  10.  
  11. public OnGameModeInit()
  12. {
  13. CreateObject(995,1544.841674,-1633.573242,13.244799,90.000000,0.000000,271.012207); // LSPDBlock1
  14. CreateObject(994,1544.860107,-1617.647216,12.537019,-1.000000,0.000000,269.168762); // LSPDBlock2
  15. CreateObject(971,-1636.529296,688.580444,9.389122,0.000000,0.000000,358.653167); // SFPDBlock1
  16. LSPDBarrier1 = CreateObject(968,1544.755004,-1623.929199,13.352820,0.000000,89.000000,269.818847);
  17. LSPDGate1 = CreateObject(980,1588.265991,-1638.143554,15.014236,0.000000,0.000000,0.675605);
  18. SFPDBarrier1 = CreateObject(968,-1572.275878,665.800231,7.037499,0.000000,-89.000000,91.176780);
  19. SFPDBarrier2 = CreateObject(968,-1701.454101,680.673767,24.857488,0.000000,-89.000000,269.939086);
  20. SFPDGate1 = CreateObject(971,-1627.696777,688.464660,9.414549,0.000000,0.000000,-0.333460);
  21. LVPDBarrier1 = CreateObject(968,2238.143554,2457.357910,10.833136,0.000000,89.000000,271.965820);
  22. LVPDGate1 = CreateObject(980,2293.974853,2497.135498,4.561177,0.000000,0.000000,91.243118);
  23. LVPDGate2 = CreateObject(980,2335.075195,2443.761474,7.144308,0.000000,0.000000,241.384170);
  24. }
  25.  
  26. public OnPlayerCommandText(playerid, cmdtext[])
  27. {
  28. if(strcmp(cmd, "/LSPDBarrier1open", true) == 0) // Command
  29. {
  30. if(IsACop(playerid)) // Checks if the player is in the police
  31. {
  32. SetObjectRot(LSPDBarrier1,0.000000,0.000000,269.818847); // Moves the object
  33. }
  34. }
  35. if(strcmp(cmd, "/LSPDBarrier1close", true) == 0)
  36. {
  37. if(IsACop(playerid))
  38. {
  39. SetObjectRot(LSPDBarrier1,0.000000,89.000000,269.818847);
  40. }
  41. }
  42. if(strcmp(cmd, "/LSPDGate1open", true) == 0)
  43. {
  44. if(IsACop(playerid))
  45. {
  46. MoveObject(LSPDGate1, 1588.265991,-1638.143554,9.534472,0.4);
  47. }
  48. }
  49. if(strcmp(cmd, "/LSPDGate1close", true) == 0)
  50. {
  51. if(IsACop(playerid))
  52. {
  53. MoveObject(LSPDGate1, 1588.265991,-1638.143554,15.014236,0.4);
  54. }
  55. }
  56. if(strcmp(cmd, "/SFPDBarrier1open", true) == 0)
  57. {
  58. if(IsACop(playerid))
  59. {
  60. SetObjectRot(SFPDBarrier1,0.000000,-1.000000,91.176780);
  61. }
  62. }
  63. if(strcmp(cmd, "/SFPDBarrier1close", true) == 0)
  64. {
  65. if(IsACop(playerid))
  66. {
  67. SetObjectRot(SFPDBarrier1,0.000000,-89.000000,91.176780);
  68. }
  69. }
  70. if(strcmp(cmd, "/SFPDBarrier2open", true) == 0)
  71. {
  72. if(IsACop(playerid))
  73. {
  74. SetObjectRot(SFPDBarrier2,0.000000,-1.000000,269.939086);
  75. }
  76. }
  77. if(strcmp(cmd, "/SFPDBarrier2close", true) == 0)
  78. {
  79. if(IsACop(playerid))
  80. {
  81. SetObjectRot(SFPDBarrier2,0.000000,-89.000000,269.939086);
  82. }
  83. }
  84. if(strcmp(cmd, "/SFPDGate1open", true) == 0)
  85. {
  86. if(IsACop(playerid))
  87. {
  88. MoveObject(SFPDGate1, -1627.696777,688.464660,14.599885,0.4);
  89. }
  90. }
  91. if(strcmp(cmd, "/SFPDGate1close", true) == 0)
  92. {
  93. if(IsACop(playerid))
  94. {
  95. MoveObject(SFPDGate1, -1627.696777,688.464660,9.414549,0.4);
  96. }
  97. }
  98. if(strcmp(cmd, "/LVPDBarrier1open", true) == 0)
  99. {
  100. if(IsACop(playerid))
  101. {
  102. SetObjectRot(LVPDBarrier1, 0.000000,-1.000000,271.965820);
  103. }
  104. }
  105. if(strcmp(cmd, "/LVPDBarrier1close", true) == 0)
  106. {
  107. if(IsACop(playerid))
  108. {
  109. SetObjectRot(LVPDBarrier1, 0.000000,89.000000,271.965820);
  110. }
  111. }
  112. if(strcmp(cmd, "/LVPDGate1open", true) == 0)
  113. {
  114. if(IsACop(playerid))
  115. {
  116. MoveObject(LVPDGate1, 2293.974853,2497.135498,10.055157,0.4);
  117. }
  118. }
  119. if(strcmp(cmd, "/LVPDGate1close", true) == 0)
  120. {
  121. if(IsACop(playerid))
  122. {
  123. MoveObject(LVPDGate1, 2293.974853,2497.135498,4.561177,0.4);
  124. }
  125. }
  126. if(strcmp(cmd, "/LVPDGate2open", true) == 0)
  127. {
  128. if(IsACop(playerid))
  129. {
  130. MoveObject(LVPDGate2, 2335.075439,2443.761474,12.621609,0.4);
  131. }
  132. }
  133. if(strcmp(cmd, "/LVPDGate2close", true) == 0)
  134. {
  135. if(IsACop(playerid))
  136. {
  137. MoveObject(LVPDGate2, 2335.075195,2443.761474,7.144308,0.4);
  138. }
  139. }
  140. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement