Guest User

Torran

a guest
Feb 5th, 2010
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. new gate;
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. CreateObject(987, 1538.658203125, -1833.3873291016, 12.546875, 0, 0, 90);
  12. CreateObject(987, 1538.6240234375, -1845.35546875, 12.546875, 0, 0, 90);
  13. CreateObject(987, 1499.5145263672, -1853.5841064453, 12.546875, 0, 0, 0);
  14. CreateObject(987, 1422.5129394531, -1842.2049560547, 12, 0, 0, 270);
  15. gate = CreateObject(974, 1422.5207519531, -1838.9348144531, 15.324615478516, 0, 0, 90);
  16. CreateObject(987, 1422.681640625, -1824.4375, 12, 0, 0, 269.99450683594);
  17. CreateObject(6976, 1469.7406005859, -1825.4454345703, 23.60000038147, 0, 0, 180);
  18. CreateObject(6976, 1488.931640625, -1825.5943603516, 12.546875, 0, 0, 179.99450683594);
  19. CreateObject(987, 1538.701171875, -1845.248046875, 12.714269638062, 0, 0, 0);
  20. return 1;
  21. }
  22.  
  23. #endif
  24.  
  25. public OnPlayerCommandText(playerid, cmdtext[])
  26. {
  27. if(strcmp("/closegates", cmdtext, true))
  28. {
  29. MoveObject(gate,1422.5129394531, -1838.9750976563, 9, 2);
  30. return 1;
  31. }
  32. if(strcmp("/opengates", cmdtext, true))
  33. {
  34. MoveObject(gate,1422.5207519531, -1838.9348144531, 15.324615478516, 2);
  35. return 1;
  36. }
  37. return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment