Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //credits by Sony
- #include <a_samp>
- #define COLOR_RED 0xAA3333AA
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- #pragma tabsize 0
- forward GateCloseZoll1();
- forward GateCloseZoll2();
- new zoll1;
- new zoll2;
- public OnFilterScriptInit()
- {
- print("\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
- print(" Sony's LS-SF Zoll Filterscript");
- print("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n");
- CreateObject(8168, 62.639053, -1533.241577, 6.127338, 0.0000, 0.0000, 186.8756);
- CreateObject(8168, 49.255692, -1531.192993, 6.260714, 0.0000, 0.0000, 6.9528);
- CreateObject(994, 52.837242, -1531.628052, 4.381447, 0.0000, 0.0000, 348.8273);
- CreateObject(996, 27.192585, -1539.311401, 4.490602, 0.0000, 0.0000, 339.2189);
- CreateObject(996, 25.940092, -1516.013306, 4.384654, 0.0000, 356.5623, 353.9067);
- CreateObject(966, 52.582298, -1534.520874, 4.111042, 0.0000, 0.0000, 80.4688);
- CreateObject(966, 59.172279, -1529.614868, 3.997721, 0.0000, 0.0000, 261.3284);
- CreateObject(996, 52.591675, -1521.283569, 4.823681, 0.0000, 0.0000, 348.7500);
- CreateObject(996, 43.648811, -1541.607788, 4.955574, 0.0000, 0.0000, 2.5783);
- CreateObject(996, 52.307480, -1541.463867, 4.908387, 0.0000, 0.0000, 345.3122);
- CreateObject(996, 61.247620, -1522.886963, 4.766047, 0.0000, 0.0000, 358.2811);
- zoll1 = CreateObject(968, 51.417946, -1541.257446, 4.870291, 0.0000, 269.7591, 260.3054);
- zoll2 = CreateObject(968, 60.200123, -1522.848999, 4.740675, 0.0000, 89.3814, 261.4057);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/Zoll", true) == 0)
- {
- if (IsPlayerInRangeOfPoint(playerid,7.0, 48.7261,-1537.2622,5.0223))
- {
- SetObjectRot(zoll1, 0.0000, 359.1406, 260.3054);
- GameTextForPlayer(playerid, "~g~Kosten: ~r~-50$", 5000, 1);
- GivePlayerMoney(playerid, -50);
- SetTimer("GateCloseZoll1", 3000, 0);
- }
- else if (IsPlayerInRangeOfPoint(playerid, 7.0, 62.9513,-1526.6962,4.7878))
- {
- SetObjectRot(zoll2, 0.0000, 0.0000, 261.4057);
- GameTextForPlayer(playerid, "~g~Kosten: ~r~-50$", 5000, 1);
- GivePlayerMoney(playerid, -500);
- SetTimer("GateCloseZoll2", 3000, 0);
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED,"Sie Sind an keiner Zoll Station");
- return 1;
- }
- return 1;
- }
- return 0;
- }
- public GateCloseZoll1()
- {
- SetObjectRot(zoll1, 0.0000, 269.7591, 260.3054);
- return 1;
- }
- public GateCloseZoll2()
- {
- SetObjectRot(zoll2, 0.0000, 89.3814, 261.4057);
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement