[FilterScript] Creating Teleports
#1

Creating Teleports


Description:

It is simple and short script, with this you can simple creating teleports by means of one command.

Bugs:

If you don't returned 1 in callback OnPlayerCommandText you have error in game.

Credits:

Ranchend1998 - For created this script.

Using:

First you must logged in as rcon administrator. Next type /Createteleport [Command]. The teleports is save in file Teleports.ini. Now copy lines from Teleports.ini and paste it to callback OnPlayerCommandText.

Download


Reply
#2

Maybe any examples?
pawn Код:
CreateTeleport(cmdtext,"/Dh",playerid,-327.320495,1520.998168,75.356956,269.884490,0,0);
CreateTeleport(cmdtext,"/Dh1",playerid,-2405.741210,-597.035217,132.648437,124.921348,0,0);
CreateTeleport(cmdtext,"/Dh2",playerid,1140.900512,-2037.156738,69.007812,270.229034,0,0);
CreateTeleport(cmdtext,"/Dh3",playerid,-1131.218017,1757.883789,36.121795,203.641952,0,0);
CreateTeleport(cmdtext,"/Dh4",playerid,-1293.917724,2483.393554,87.118392,195.573883,0,0);
CreateTeleport(cmdtext,"/Dh5",playerid,-1767.002197,2706.623535,59.411277,215.679031,0,0);
CreateTeleport(cmdtext,"/Fh",playerid,-837.789123,-144.093368,63.201229,14.137146,0,0);
CreateTeleport(cmdtext,"/Fh1",playerid,1143.936767,-2106.581787,71.838699,201.984344,0,0);
CreateTeleport(cmdtext,"/Fh2",playerid,-511.728973,-99.498023,62.937313,356.884429,0,0);
CreateTeleport(cmdtext,"/Fh3",playerid,-775.103210,-1744.365844,95.359878,342.450897,0,0);
CreateTeleport(cmdtext,"/Fh4",playerid,-880.449584,-1110.174804,98.609375,347.686767,0,0);
CreateTeleport(cmdtext,"/G",playerid,2415.427246,2548.038818,21.875000,271.931976,0,0);
CreateTeleport(cmdtext,"/G1",playerid,2327.367187,1397.832519,42.820312,0.000000,0,0);
CreateTeleport(cmdtext,"/G2",playerid,2235.788818,1963.662597,31.779651,269.921844,0,0);
CreateTeleport(cmdtext,"/G3",playerid,2073.431640,2421.706298,49.523437,179.420196,0,0);
CreateTeleport(cmdtext,"/G4",playerid,1961.102539,1747.453491,18.933877,269.567535,0,0);
CreateTeleport(cmdtext,"/S",playerid,237.234512,2067.705322,17.640625,85.017997,0,0);
CreateTeleport(cmdtext,"/S1",playerid,-1951.642700,691.634826,46.562500,179.164901,0,0);
CreateTeleport(cmdtext,"/S2",playerid,154.246292,-1920.348022,3.769643,179.424255,0,0);
CreateTeleport(cmdtext,"/S3",playerid,-2706.224365,351.578308,4.414062,0.207479,0,0);
CreateTeleport(cmdtext,"/S4",playerid,-320.155517,1810.219970,42.359375,1.345811,0,0);
CreateTeleport(cmdtext,"/S5",playerid,2628.791748,2292.045898,10.868410,359.622589,0,0);
CreateTeleport(cmdtext,"/Ship",playerid,-2472.192626,1548.226074,33.227333,271.613189,0,0);
CreateTeleport(cmdtext,"/Ship1",playerid,-1384.397583,1489.442016,16.320312,89.713684,0,0);
CreateTeleport(cmdtext,"/Ship2",playerid,2003.575561,1544.355224,13.590750,269.613220,0,0);
CreateTeleport(cmdtext,"/Beach",playerid,347.498352,-1803.824707,4.684301,89.747276,0,0);
CreateTeleport(cmdtext,"/Beach1",playerid,-2904.630371,472.650695,4.914062,269.799041,0,0);
CreateTeleport(cmdtext,"/Ls",playerid,2492.581298,-1668.886230,13.343750,92.678672,0,0);
CreateTeleport(cmdtext,"/Sf",playerid,-2030.681884,135.759429,28.835937,270.905090,0,0);
CreateTeleport(cmdtext,"/Lv",playerid,2150.180664,1008.745971,10.820312,180.137069,0,0);
CreateTeleport(cmdtext,"/Pier",playerid,837.578247,-2043.939575,12.867187,180.000015,0,0);
CreateTeleport(cmdtext,"/Army",playerid,309.590606,2060.132324,17.640625,180.083938,0,0);
CreateTeleport(cmdtext,"/Desert",playerid,427.605407,2530.687011,16.627475,180.402526,0,0);
CreateTeleport(cmdtext,"/Dam",playerid,-914.227416,2011.254150,60.914062,217.863739,0,0);
CreateTeleport(cmdtext,"/Chilliad",playerid,-2326.344482,-1610.314575,483.738098,211.049011,0,0);
CreateTeleport(cmdtext,"/Skatepark",playerid,1867.597778,-1384.860229,13.507353,270.615051,0,0);
CreateTeleport(cmdtext,"/Farm",playerid,-60.753696,-0.093510,3.117187,334.523864,0,0);
CreateTeleport(cmdtext,"/Drag",playerid,-2680.341064,1245.781005,55.675369,5.158790,0,0);
CreateTeleport(cmdtext,"/Quarry",playerid,825.748474,849.544067,11.593124,292.248077,0,0);
CreateTeleport(cmdtext,"/Ranch",playerid,-703.988403,953.468383,12.400305,90.897514,0,0);
CreateTeleport(cmdtext,"/Tanker",playerid,-1444.782714,501.430480,18.234375,268.910125,0,0);
CreateTeleport(cmdtext,"/Party",playerid,488.207092,-14.290634,1000.679687,89.300773,17,0);
CreateTeleport(cmdtext,"/Port",playerid,2771.598144,-2438.267333,13.637617,90.954261,0,0);
CreateTeleport(cmdtext,"/Golfclub",playerid,1497.902587,2773.325439,10.820312,268.981964,0,0);
CreateTeleport(cmdtext,"/Swamp",playerid,-838.095458,-1964.895507,14.281082,275.513214,0,0);
CreateTeleport(cmdtext,"/Church",playerid,-2487.145996,2403.571777,16.148639,119.927627,0,0);
CreateTeleport(cmdtext,"/Churchls",playerid,2243.732666,-1306.158447,23.976581,359.044067,0,0);
CreateTeleport(cmdtext,"/Churchsf",playerid,-1982.063232,1117.771850,53.123260,267.506317,0,0);
CreateTeleport(cmdtext,"/Churchlv",playerid,2481.231689,918.538146,10.820312,90.202041,0,0);
CreateTeleport(cmdtext,"/Housingls",playerid,2398.974609,-1756.576904,13.546875,89.455421,0,0);
CreateTeleport(cmdtext,"/Housingls1",playerid,2424.302734,-2009.688598,13.430438,269.624664,0,0);
CreateTeleport(cmdtext,"/Housingls2",playerid,2745.244384,-1622.091430,13.020169,0.019782,0,0);
CreateTeleport(cmdtext,"/Housingls3",playerid,2634.848876,-1064.642333,69.625000,180.832290,0,0);
CreateTeleport(cmdtext,"/Housingsf",playerid,-2887.573730,1178.113647,9.748540,173.112503,0,0);
CreateTeleport(cmdtext,"/Housingsf1",playerid,-2573.404541,1144.469726,55.726562,254.764404,0,0);
CreateTeleport(cmdtext,"/Housinglv",playerid,2074.228759,2651.726806,10.820312,89.624374,0,0);
CreateTeleport(cmdtext,"/Housinglv1",playerid,2072.118896,2742.158447,10.671875,88.950592,0,0);
CreateTeleport(cmdtext,"/Housinglv2",playerid,1766.415527,2729.006103,10.835937,0.000000,0,0);
CreateTeleport(cmdtext,"/Housinglv3",playerid,1673.023559,2733.235595,10.671875,89.645515,0,0);
CreateTeleport(cmdtext,"/Housinglv4",playerid,1673.459106,2821.730957,10.671875,89.645339,0,0);
CreateTeleport(cmdtext,"/Airportls",playerid,1960.697875,-2262.707031,13.546875,178.704559,0,0);
CreateTeleport(cmdtext,"/Airportsf",playerid,-1197.360473,33.170616,14.148437,134.547775,0,0);
CreateTeleport(cmdtext,"/Airportlv",playerid,1671.845092,1634.828002,10.820312,179.202285,0,0);
CreateTeleport(cmdtext,"/Tuningls",playerid,2649.441406,-2003.965820,13.382812,269.963714,0,0);
CreateTeleport(cmdtext,"/Tuningls1",playerid,1041.308227,-1031.660522,32.055252,359.066864,0,0);
CreateTeleport(cmdtext,"/Tuningsf",playerid,-1925.743774,228.339279,34.350254,88.937034,0,0);
CreateTeleport(cmdtext,"/Tuningsf1",playerid,-2700.379882,217.784027,4.179687,91.669349,0,0);
CreateTeleport(cmdtext,"/Tuninglv",playerid,2385.421142,1023.986450,10.820312,355.885437,0,0);
Reply
#3

tnx this help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)