SA-MP Forums Archive
[FilterScript] My First [FS] Drag Track - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] My First [FS] Drag Track (/showthread.php?tid=59580)



My First [FS] Drag Track - gytisx - 28.12.2008


Код:
CreateObject(982, 405.318695, 2527.653320, 16.230694, 0, 0, 270);
CreateObject(982, 380.819702, 2528.905518, 16.249596, 0, 0, 270);
CreateObject(982, 354.721710, 2529.565674, 16.384201, 0, 0, 270);
CreateObject(982, 330.945251, 2528.549072, 16.460026, 0, 0, 270);
CreateObject(982, 304.640717, 2528.460449, 16.486961, 0, 0, 270);
CreateObject(982, 277.232025, 2528.328125, 16.483177, 0, 0, 270);
CreateObject(982, 250.646362, 2528.259033, 16.461681, 0, 0, 270);
CreateObject(982, 224.465286, 2528.273926, 16.468399, 0, 0, 270);
CreateObject(982, 195.737411, 2528.251709, 16.487808, 0, 0, 270);
CreateObject(982, 164.521179, 2528.305420, 16.477245, 0, 0, 270);
CreateObject(982, 138.152710, 2528.233887, 16.480915, 0, 0, 270);
CreateObject(982, 110.364799, 2528.030029, 16.487957, 0, 0, 270);
CreateObject(982, 83.098862, 2527.993652, 16.186619, 0, 0, 270);
CreateObject(982, 56.125954, 2528.029785, 16.167931, 0, 0, 270);
CreateObject(982, 29.113401, 2527.978760, 16.167931, 0, 0, 270);
CreateObject(982, 3.415903, 2527.964600, 16.175739, 0, 0, 270);
CreateObject(982, -23.517525, 2528.014404, 16.167931, 0, 0, 270);
CreateObject(982, -49.779373, 2528.057373, 16.167931, 0, 0, 270);
CreateObject(3749, -65.074387, 2506.527588, 21.342789, 0, 0, 270);
CreateObject(7033, 412.852814, 2502.627441, 19.998146, 0, 0, 90);
CreateObject(978, 420.394226, 2483.387451, 16.324594, 0, 0, 281.25);
CreateObject(979, 418.790405, 2522.165771, 16.324594, 0, 0, 270);
CreateObject(979, -44.702377, 2524.828613, 16.324594, 0, 0, 213.75);
CreateObject(979, -52.039368, 2518.351318, 16.332403, 0, 0, 225);
CreateObject(978, -55.828346, 2492.251709, 16.324593, 0, 0, 303.75);
CreateObject(978, -49.746178, 2483.450684, 16.324594, 0, 0, 303.75);
CreateObject(982, -48.252487, 2477.401367, 16.167931, 0, 0, 90);
CreateObject(982, -21.082066, 2477.391602, 16.175739, 0, 0, 90);
CreateObject(982, 7.023036, 2477.704834, 16.167931, 0, 0, 90);
CreateObject(982, 32.933624, 2477.620117, 16.167931, 0, 357.4217, 90);
CreateObject(982, 59.499825, 2477.490479, 16.167931, 0, 357.4217, 90);
CreateObject(982, 85.643349, 2477.413574, 16.167931, 0, 357.4217, 90);
CreateObject(982, 112.543182, 2477.289795, 16.167931, 0, 357.4217, 90);
CreateObject(982, 138.923401, 2477.740723, 16.167931, 0, 357.4217, 90);
CreateObject(982, 167.141678, 2477.699951, 16.167931, 0, 357.4217, 90);
CreateObject(982, 194.368790, 2477.729248, 16.175724, 0, 357.4217, 90);
CreateObject(982, 221.267700, 2477.654541, 16.167931, 0, 357.4217, 90);
CreateObject(982, 247.612213, 2477.465820, 16.167931, 0, 357.4217, 90);
CreateObject(982, 275.808960, 2477.282471, 16.167931, 0, 357.4217, 90);
CreateObject(982, 302.723694, 2476.875977, 16.167931, 0, 357.4217, 90);
CreateObject(982, 329.806458, 2476.768311, 16.175724, 0, 357.4217, 90);
CreateObject(982, 356.567841, 2476.671143, 16.167931, 0, 357.4217, 90);
CreateObject(982, 384.229370, 2476.770996, 16.167931, 0, 357.4217, 90);
CreateObject(982, 410.105774, 2476.810303, 16.175724, 0, 357.4217, 90);
CreateObject(3279, 363.345520, 2473.303711, 15.559992, 0, 0, 0);
CreateObject(3279, 359.301300, 2538.250000, 15.769968, 0, 0, 0);
CreateObject(3279, 266.567200, 2537.323486, 15.888117, 0, 0, 0);
CreateObject(3279, 263.311401, 2470.236816, 15.552179, 0, 0, 0);
CreateObject(3279, 181.998199, 2534.185547, 15.835125, 0, 0, 0);
CreateObject(3279, 172.727600, 2471.180420, 15.559994, 0, 0, 0);
CreateObject(3279, -0.682999, 2534.356689, 15.559992, 0, 0, 0);
CreateObject(3279, -6.891918, 2468.754150, 15.559992, 0, 0, 0);
CreateObject(3666, 396.533813, 2502.635742, 15.998060, 0, 0, 0);
CreateObject(3666, 388.533356, 2502.684570, 15.998060, 0, 0, 0);
CreateObject(3666, 383.849823, 2502.698730, 15.998060, 0, 0, 0);
CreateObject(3666, 376.320496, 2502.804932, 15.998060, 0, 0, 0);
CreateObject(3666, 368.718414, 2503.032227, 15.998060, 0, 0, 0);
CreateObject(3666, 361.100037, 2503.173096, 15.998060, 0, 0, 0);
CreateObject(3666, 352.108551, 2503.020752, 15.998060, 0, 0, 0);
CreateObject(3666, 344.854706, 2503.676025, 15.998060, 0, 0, 0);
CreateObject(3666, 335.013123, 2504.084473, 15.998060, 0, 0, 0);
CreateObject(3666, 323.361694, 2503.778320, 15.998060, 0, 0, 0);
CreateObject(3666, 311.208435, 2503.615967, 15.998060, 0, 0, 0);
CreateObject(3666, 300.337921, 2503.355469, 15.998060, 0, 0, 0);
CreateObject(3666, 283.540497, 2503.066650, 15.998060, 0, 0, 0);
CreateObject(3666, 263.516052, 2503.019043, 15.998060, 0, 0, 0);
CreateObject(3666, 246.964996, 2502.832275, 15.998060, 0, 0, 0);
CreateObject(3666, 225.123718, 2502.413574, 15.998060, 0, 0, 0);
CreateObject(3666, 202.336548, 2503.051025, 15.998060, 0, 0, 0);
CreateObject(3666, 181.712097, 2502.624756, 15.998060, 0, 0, 0);
CreateObject(3666, 168.177002, 2502.661133, 15.998060, 0, 0, 0);
CreateObject(3666, 159.526733, 2502.710205, 15.998060, 0, 0, 0);
CreateObject(3666, 148.141510, 2502.825684, 15.998060, 0, 0, 0);
CreateObject(3666, 213.532349, 2502.804932, 15.998060, 0, 0, 0);
CreateObject(3666, 134.841705, 2502.816406, 15.998060, 0, 0, 0);
CreateObject(3666, 111.035614, 2502.842529, 16.005869, 0, 0, 0);
CreateObject(3666, 100.596153, 2502.887695, 15.998060, 0, 0, 0);
CreateObject(3666, 89.089645, 2502.746826, 15.998060, 0, 0, 0);
CreateObject(3666, 74.795349, 2502.987061, 15.998060, 0, 0, 0);
CreateObject(3666, 60.741280, 2503.218994, 15.998060, 0, 0, 0);
CreateObject(3666, 47.077271, 2503.279785, 15.998062, 0, 0, 0);
CreateObject(3666, 26.273666, 2503.354980, 16.005869, 0, 0, 0);
CreateObject(3666, 12.728344, 2503.508545, 15.998060, 0, 0, 0);
CreateObject(3666, 12.699739, 2506.864014, 15.998060, 0, 0, 0);
CreateObject(3666, 11.238373, 2499.578857, 15.998060, 0, 0, 0);
CreateObject(3666, 12.326128, 2509.974609, 15.998060, 0, 0, 0);
CreateObject(3666, 10.962069, 2496.583008, 15.998060, 0, 0, 0);
CreateObject(3666, 122.070885, 2503.451416, 15.998060, 0, 0, 0);
CreateObject(3666, 191.211502, 2502.748291, 15.998060, 0, 0, 0);
CreateObject(3666, -39.907104, 2526.375488, 15.998060, 0, 0, 0);
CreateObject(3666, -42.003525, 2524.434082, 15.998060, 0, 0, 0);
CreateObject(3666, -43.930252, 2522.406494, 15.998060, 0, 0, 0);
CreateObject(3666, -46.787964, 2520.242432, 15.998060, 0, 0, 0);
CreateObject(3666, -52.634880, 2514.371826, 16.005869, 0, 0, 0);
CreateObject(3666, -50.591316, 2516.571777, 15.998060, 0, 0, 0);
CreateObject(3666, -48.765289, 2518.703857, 15.998060, 0, 0, 0);
CreateObject(3666, -56.190468, 2496.530518, 15.998060, 0, 0, 0);
CreateObject(3666, -55.037926, 2494.890625, 15.998060, 0, 0, 0);
CreateObject(3666, -53.808891, 2492.928955, 15.998060, 0, 0, 0);
CreateObject(3666, -52.471565, 2490.452637, 15.998060, 0, 0, 0);
CreateObject(3666, -46.400932, 2481.624756, 15.998060, 0, 0, 0);
CreateObject(3666, -47.693520, 2483.154785, 15.998060, 0, 0, 0);
CreateObject(3666, -48.853256, 2484.464111, 15.998060, 0, 0, 0);
CreateObject(3666, -50.331924, 2486.273682, 15.998060, 0, 0, 0);
CreateObject(3666, -62.138374, 2500.659424, 15.998060, 0, 0, 0);
CreateObject(3666, -62.439896, 2512.101807, 16.005869, 0, 0, 0);



Re: My First [FS] Drag Track - gytisx - 28.12.2008

sorry, I dont have screnshoot


Re: My First [FS] Drag Track - Serbish - 28.12.2008

Quote:
Originally Posted by gytisx
Hi all,

This is my new FS (drag track in los santos beach)

This is code(sorry i dont know how it put to pastebin.com )

#include <a_samp>

#pragma tabsize 0
#define FILTERSCRIPT

public OnFilterScriptInit()
{
CreateObject(982, 405.318695, 2527.653320, 16.230694, 0, 0, 270);
CreateObject(982, 380.819702, 2528.905518, 16.249596, 0, 0, 270);
CreateObject(982, 354.721710, 2529.565674, 16.384201, 0, 0, 270);
CreateObject(982, 330.945251, 2528.549072, 16.460026, 0, 0, 270);
CreateObject(982, 304.640717, 2528.460449, 16.486961, 0, 0, 270);
CreateObject(982, 277.232025, 2528.328125, 16.483177, 0, 0, 270);
CreateObject(982, 250.646362, 2528.259033, 16.461681, 0, 0, 270);
CreateObject(982, 224.465286, 2528.273926, 16.468399, 0, 0, 270);
CreateObject(982, 195.737411, 2528.251709, 16.487808, 0, 0, 270);
CreateObject(982, 164.521179, 2528.305420, 16.477245, 0, 0, 270);
CreateObject(982, 138.152710, 2528.233887, 16.480915, 0, 0, 270);
CreateObject(982, 110.364799, 2528.030029, 16.487957, 0, 0, 270);
CreateObject(982, 83.098862, 2527.993652, 16.186619, 0, 0, 270);
CreateObject(982, 56.125954, 2528.029785, 16.167931, 0, 0, 270);
CreateObject(982, 29.113401, 2527.978760, 16.167931, 0, 0, 270);
CreateObject(982, 3.415903, 2527.964600, 16.175739, 0, 0, 270);
CreateObject(982, -23.517525, 2528.014404, 16.167931, 0, 0, 270);
CreateObject(982, -49.779373, 2528.057373, 16.167931, 0, 0, 270);
CreateObject(3749, -65.074387, 2506.527588, 21.342789, 0, 0, 270);
CreateObject(7033, 412.852814, 2502.627441, 19.998146, 0, 0, 90);
CreateObject(978, 420.394226, 2483.387451, 16.324594, 0, 0, 281.25);
CreateObject(979, 418.790405, 2522.165771, 16.324594, 0, 0, 270);
CreateObject(979, -44.702377, 2524.828613, 16.324594, 0, 0, 213.75);
CreateObject(979, -52.039368, 2518.351318, 16.332403, 0, 0, 225);
CreateObject(978, -55.828346, 2492.251709, 16.324593, 0, 0, 303.75);
CreateObject(978, -49.746178, 2483.450684, 16.324594, 0, 0, 303.75);
CreateObject(982, -48.252487, 2477.401367, 16.167931, 0, 0, 90);
CreateObject(982, -21.082066, 2477.391602, 16.175739, 0, 0, 90);
CreateObject(982, 7.023036, 2477.704834, 16.167931, 0, 0, 90);
CreateObject(982, 32.933624, 2477.620117, 16.167931, 0, 357.4217, 90);
CreateObject(982, 59.499825, 2477.490479, 16.167931, 0, 357.4217, 90);
CreateObject(982, 85.643349, 2477.413574, 16.167931, 0, 357.4217, 90);
CreateObject(982, 112.543182, 2477.289795, 16.167931, 0, 357.4217, 90);
CreateObject(982, 138.923401, 2477.740723, 16.167931, 0, 357.4217, 90);
CreateObject(982, 167.141678, 2477.699951, 16.167931, 0, 357.4217, 90);
CreateObject(982, 194.368790, 2477.729248, 16.175724, 0, 357.4217, 90);
CreateObject(982, 221.267700, 2477.654541, 16.167931, 0, 357.4217, 90);
CreateObject(982, 247.612213, 2477.465820, 16.167931, 0, 357.4217, 90);
CreateObject(982, 275.808960, 2477.282471, 16.167931, 0, 357.4217, 90);
CreateObject(982, 302.723694, 2476.875977, 16.167931, 0, 357.4217, 90);
CreateObject(982, 329.806458, 2476.768311, 16.175724, 0, 357.4217, 90);
CreateObject(982, 356.567841, 2476.671143, 16.167931, 0, 357.4217, 90);
CreateObject(982, 384.229370, 2476.770996, 16.167931, 0, 357.4217, 90);
CreateObject(982, 410.105774, 2476.810303, 16.175724, 0, 357.4217, 90);
CreateObject(3279, 363.345520, 2473.303711, 15.559992, 0, 0, 0);
CreateObject(3279, 359.301300, 2538.250000, 15.769968, 0, 0, 0);
CreateObject(3279, 266.567200, 2537.323486, 15.888117, 0, 0, 0);
CreateObject(3279, 263.311401, 2470.236816, 15.552179, 0, 0, 0);
CreateObject(3279, 181.998199, 2534.185547, 15.835125, 0, 0, 0);
CreateObject(3279, 172.727600, 2471.180420, 15.559994, 0, 0, 0);
CreateObject(3279, -0.682999, 2534.356689, 15.559992, 0, 0, 0);
CreateObject(3279, -6.891918, 2468.754150, 15.559992, 0, 0, 0);
CreateObject(3666, 396.533813, 2502.635742, 15.998060, 0, 0, 0);
CreateObject(3666, 388.533356, 2502.684570, 15.998060, 0, 0, 0);
CreateObject(3666, 383.849823, 2502.698730, 15.998060, 0, 0, 0);
CreateObject(3666, 376.320496, 2502.804932, 15.998060, 0, 0, 0);
CreateObject(3666, 368.718414, 2503.032227, 15.998060, 0, 0, 0);
CreateObject(3666, 361.100037, 2503.173096, 15.998060, 0, 0, 0);
CreateObject(3666, 352.108551, 2503.020752, 15.998060, 0, 0, 0);
CreateObject(3666, 344.854706, 2503.676025, 15.998060, 0, 0, 0);
CreateObject(3666, 335.013123, 2504.084473, 15.998060, 0, 0, 0);
CreateObject(3666, 323.361694, 2503.778320, 15.998060, 0, 0, 0);
CreateObject(3666, 311.208435, 2503.615967, 15.998060, 0, 0, 0);
CreateObject(3666, 300.337921, 2503.355469, 15.998060, 0, 0, 0);
CreateObject(3666, 283.540497, 2503.066650, 15.998060, 0, 0, 0);
CreateObject(3666, 263.516052, 2503.019043, 15.998060, 0, 0, 0);
CreateObject(3666, 246.964996, 2502.832275, 15.998060, 0, 0, 0);
CreateObject(3666, 225.123718, 2502.413574, 15.998060, 0, 0, 0);
CreateObject(3666, 202.336548, 2503.051025, 15.998060, 0, 0, 0);
CreateObject(3666, 181.712097, 2502.624756, 15.998060, 0, 0, 0);
CreateObject(3666, 168.177002, 2502.661133, 15.998060, 0, 0, 0);
CreateObject(3666, 159.526733, 2502.710205, 15.998060, 0, 0, 0);
CreateObject(3666, 148.141510, 2502.825684, 15.998060, 0, 0, 0);
CreateObject(3666, 213.532349, 2502.804932, 15.998060, 0, 0, 0);
CreateObject(3666, 134.841705, 2502.816406, 15.998060, 0, 0, 0);
CreateObject(3666, 111.035614, 2502.842529, 16.005869, 0, 0, 0);
CreateObject(3666, 100.596153, 2502.887695, 15.998060, 0, 0, 0);
CreateObject(3666, 89.089645, 2502.746826, 15.998060, 0, 0, 0);
CreateObject(3666, 74.795349, 2502.987061, 15.998060, 0, 0, 0);
CreateObject(3666, 60.741280, 2503.218994, 15.998060, 0, 0, 0);
CreateObject(3666, 47.077271, 2503.279785, 15.998062, 0, 0, 0);
CreateObject(3666, 26.273666, 2503.354980, 16.005869, 0, 0, 0);
CreateObject(3666, 12.728344, 2503.508545, 15.998060, 0, 0, 0);
CreateObject(3666, 12.699739, 2506.864014, 15.998060, 0, 0, 0);
CreateObject(3666, 11.238373, 2499.578857, 15.998060, 0, 0, 0);
CreateObject(3666, 12.326128, 2509.974609, 15.998060, 0, 0, 0);
CreateObject(3666, 10.962069, 2496.583008, 15.998060, 0, 0, 0);
CreateObject(3666, 122.070885, 2503.451416, 15.998060, 0, 0, 0);
CreateObject(3666, 191.211502, 2502.748291, 15.998060, 0, 0, 0);
CreateObject(3666, -39.907104, 2526.375488, 15.998060, 0, 0, 0);
CreateObject(3666, -42.003525, 2524.434082, 15.998060, 0, 0, 0);
CreateObject(3666, -43.930252, 2522.406494, 15.998060, 0, 0, 0);
CreateObject(3666, -46.787964, 2520.242432, 15.998060, 0, 0, 0);
CreateObject(3666, -52.634880, 2514.371826, 16.005869, 0, 0, 0);
CreateObject(3666, -50.591316, 2516.571777, 15.998060, 0, 0, 0);
CreateObject(3666, -48.765289, 2518.703857, 15.998060, 0, 0, 0);
CreateObject(3666, -56.190468, 2496.530518, 15.998060, 0, 0, 0);
CreateObject(3666, -55.037926, 2494.890625, 15.998060, 0, 0, 0);
CreateObject(3666, -53.808891, 2492.928955, 15.998060, 0, 0, 0);
CreateObject(3666, -52.471565, 2490.452637, 15.998060, 0, 0, 0);
CreateObject(3666, -46.400932, 2481.624756, 15.998060, 0, 0, 0);
CreateObject(3666, -47.693520, 2483.154785, 15.998060, 0, 0, 0);
CreateObject(3666, -48.853256, 2484.464111, 15.998060, 0, 0, 0);
CreateObject(3666, -50.331924, 2486.273682, 15.998060, 0, 0, 0);
CreateObject(3666, -62.138374, 2500.659424, 15.998060, 0, 0, 0);
CreateObject(3666, -62.439896, 2512.101807, 16.005869, 0, 0, 0);


print("\n--------------------------------------");
print(" DragRace Nr.2 FROM [LT]-FR by GYTIS[LTU]");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}


please dont cut my credits
You don't need OnFilterScriptExit.
Use this between your code


Re: My First [FS] Drag Track - gytisx - 28.12.2008

Ok, Thanks


Re: My First [FS] Drag Track - gytisx - 28.12.2008

This is teleport to drgat track:

//------------------------------Teleport to Dragas------------------------------
if(strcmp(cmdtext, "/drag3", true) == 0)
{
new cartype = GetPlayerVehicleID(playerid);
new State=GetPlayerState(playerid);
{
if(State!=PLAYER_STATE_DRIVER)
{
SetPlayerPos(playerid,234.1930,-1865.2618,2.838;
}
else if(IsPlayerInVehicle(playerid, cartype) == 1)
{
SetVehiclePos(cartype,234.1930,-1865.2618,2.838;
SetVehicleZAngle(cartype,91);
}
else
{
SetPlayerPos(playerid,234.1930,-1865.2618,2.838;
}
GameTextForPlayer(playerid,"Drago Zona!",2500,3);
new pName[30];
GetPlayerName(playerid, pName, 30);
format(string, 280, "%s dabar drag zonoje, jei nori prisijungti, rasyk /drag3", pName);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
}
return 1;
}




Re: My First [FS] Drag Track - Raimundas_Raimis - 23.03.2009

laukiu screenu


Re: My First [FS] Drag Track - Gamer007 - 14.05.2009

EDIT: nvm


Re: My First [FS] Drag Track - Weirdosport - 14.05.2009

Pastebin is extremely simple.. You go to pastebin.com, paste your text into that gaping white space, and scroll down.. You may wish to set the option "forever" etc, but other than that you press submit. If anything it's even easier than making a topic on these forums! Even if you don't use pastebin, put [pawn ] tags around the code at least.

@ gytisx, that teleport is very strangely coded.. unnecessary setting of variables etc.. nonsensical structure.. the brackets appear wrong..

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/drag3", true) == 0)
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
            SetVehiclePos(GetPlayerVehicleID(playerid),234.1930,-1865.2618,2.8388);
            SetVehicleZAngle(GetPlayerVehicleID(playerid),90.0);
        }
        else
        {
            SetPlayerPos(playerid,234.1930,-1865.2618,2.8388);
        }
        GameTextForPlayer(playerid,"Drago Zona!",2500,3);
        return 1;
    }
    return 0;
}



Re: My First [FS] Drag Track - @TheShadow@ - 14.05.2009

This is NO filterscript its a MAP.
Remember this ok?


Re: My First [FS] Drag Track - Weirdosport - 14.05.2009

Quote:
Originally Posted by @TheShadow@
This is NO filterscript its a MAP.
Remember this ok?
It is a map within a filterscript, normally maps just give you a list of objects, this has callbacks, so I can see why he's calling is a [FS]


Re: My First [FS] Drag Track - gytisx - 24.06.2009

Quote:
Originally Posted by Weirdosport
Quote:
Originally Posted by @TheShadow@
This is NO filterscript its a MAP.
Remember this ok?
It is a map within a filterscript, normally maps just give you a list of objects, this has callbacks, so I can see why he's calling is a [FS]
I'm sorry... This is old theme... Now I creating racing server... Now I have a lot of bugs in drag and drift


Re: My First [FS] Drag Track - [TT]Nick - 25.06.2009

Try using the 'Insert Code' Option

Код:
It will look like this
for the code,makes it more neat.

nice job also.


Re: My First [FS] Drag Track - gytisx - 25.06.2009

Quote:
Originally Posted by [TT
Nick ]
Try using the 'Insert Code' Option

Код:
It will look like this
for the code,makes it more neat.

nice job also.
Done with MAP