Advertisement
Guest User

Zoll LS-SF

a guest
Jun 26th, 2010
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.48 KB | None | 0 0
  1. //credits by Sony
  2. #include <a_samp>
  3. #define COLOR_RED 0xAA3333AA
  4. #define FILTERSCRIPT
  5. #if defined FILTERSCRIPT
  6. #pragma tabsize 0
  7. forward GateCloseZoll1();
  8. forward GateCloseZoll2();
  9. new zoll1;
  10. new zoll2;
  11. public OnFilterScriptInit()
  12. {
  13.     print("\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
  14.     print(" Sony's LS-SF Zoll Filterscript");
  15.     print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n");
  16. CreateObject(8168, 62.639053, -1533.241577, 6.127338, 0.0000, 0.0000, 186.8756);
  17. CreateObject(8168, 49.255692, -1531.192993, 6.260714, 0.0000, 0.0000, 6.9528);
  18. CreateObject(994, 52.837242, -1531.628052, 4.381447, 0.0000, 0.0000, 348.8273);
  19. CreateObject(996, 27.192585, -1539.311401, 4.490602, 0.0000, 0.0000, 339.2189);
  20. CreateObject(996, 25.940092, -1516.013306, 4.384654, 0.0000, 356.5623, 353.9067);
  21. CreateObject(966, 52.582298, -1534.520874, 4.111042, 0.0000, 0.0000, 80.4688);
  22. CreateObject(966, 59.172279, -1529.614868, 3.997721, 0.0000, 0.0000, 261.3284);
  23. CreateObject(996, 52.591675, -1521.283569, 4.823681, 0.0000, 0.0000, 348.7500);
  24. CreateObject(996, 43.648811, -1541.607788, 4.955574, 0.0000, 0.0000, 2.5783);
  25. CreateObject(996, 52.307480, -1541.463867, 4.908387, 0.0000, 0.0000, 345.3122);
  26. CreateObject(996, 61.247620, -1522.886963, 4.766047, 0.0000, 0.0000, 358.2811);
  27.     zoll1 = CreateObject(968, 51.417946, -1541.257446, 4.870291, 0.0000, 269.7591, 260.3054);
  28.     zoll2 = CreateObject(968, 60.200123, -1522.848999, 4.740675, 0.0000, 89.3814, 261.4057);
  29.     return 1;
  30. }
  31. public OnPlayerCommandText(playerid, cmdtext[])
  32. {
  33. if (strcmp(cmdtext, "/Zoll", true) == 0)
  34. {
  35.     if (IsPlayerInRangeOfPoint(playerid,7.0, 48.7261,-1537.2622,5.0223))
  36.     {
  37.         SetObjectRot(zoll1, 0.0000, 359.1406, 260.3054);
  38.         GameTextForPlayer(playerid, "~g~Kosten: ~r~-50$", 5000, 1);
  39.         GivePlayerMoney(playerid, -50);
  40.         SetTimer("GateCloseZoll1", 3000, 0);
  41. }
  42.     else if (IsPlayerInRangeOfPoint(playerid, 7.0, 62.9513,-1526.6962,4.7878))
  43.     {
  44.         SetObjectRot(zoll2, 0.0000, 0.0000, 261.4057);
  45.         GameTextForPlayer(playerid, "~g~Kosten: ~r~-50$", 5000, 1);
  46.         GivePlayerMoney(playerid, -500);
  47.         SetTimer("GateCloseZoll2", 3000, 0);
  48.             }
  49.         else
  50.         {
  51.             SendClientMessage(playerid, COLOR_RED,"Sie Sind an keiner Zoll Station");
  52.             return 1;
  53.         }
  54.    return 1;
  55. }
  56.  return 0;
  57.  }
  58. public GateCloseZoll1()
  59. {
  60.       SetObjectRot(zoll1, 0.0000, 269.7591, 260.3054);
  61.       return 1;
  62. }
  63. public GateCloseZoll2()
  64. {
  65.      SetObjectRot(zoll2, 0.0000, 89.3814, 261.4057);
  66.      return 1;
  67. }
  68. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement