Hi,
Wie kann man Waffen und Heilungspickup auf einer beliebigen Position im SAMP Debug erstellen?
Ich will gerne eine DM machen dafür brauche ich auch verschiedene Pickups.
Meine ICQ Nr: 369-263-543
MfG Maggi
Hi,
Wie kann man Waffen und Heilungspickup auf einer beliebigen Position im SAMP Debug erstellen?
Ich will gerne eine DM machen dafür brauche ich auch verschiedene Pickups.
Meine ICQ Nr: 369-263-543
MfG Maggi
Guck mal im Wiki da ist eigentlich alles was du für ein Pickup brauchst
Das kann man dann auch in OnGameModeInit infügen...
AddStaticPickup(pickupID,style,x,y,z);
Die pickupID fin dest du in KavKus's Post und bei dem Style... für sowas würde ich die 2 empfehlen, da sie ja auch respawnen sollen
Hi, das verstehe ich nicht KeksOfDead!
Ich habe einen Filterscript runtergeladen und dan sieht das ganze so aus:
CreatePickup(356,2,2530.5549,2800.5544,10.8203);
CreatePickup(353,2,2528.0591,2800.2024,10.8203);
CreatePickup(1240,2,2529.7896,2802.0969,10.8203);
Warum muss ich dann AddStaticPickup(pickupID,style,x,y,z); holen da passen ja nur 5 Zhalen rein und oben muss man 8 Zahlen reinschreiben. Und wo mache ich das überhaupt? Mit welchem Programm? Geht das auch mit dem SAMP Debug?
Bitte um Hilfe
MFG Maggi
alter lern wenigstens das grundwissen...schau dich im wiki um da kannste so viel daraus lernen...ich habe wirklich keine lust mehr dir zu helfen als spammst du mich in icq voll mit dem problem und dem problem...halloooo ich bin auch nur ein mensch!!!So vielleicht hat ein anderer lust aber ich nicht!
Ich habe bei dem auch keine Lust mehr, der ist total ungeduldig mit seinem Cop Tor, ich bin auch nur 13 und habe Hausaufgaben...OMG!
Alles anzeigenHi, das verstehe ich nicht KeksOfDead!
Ich habe einen Filterscript runtergeladen und dan sieht das ganze so aus:
CreatePickup(356,2,2530.5549,2800.5544,10.8203);
CreatePickup(353,2,2528.0591,2800.2024,10.8203);
CreatePickup(1240,2,2529.7896,2802.0969,10.8203);
Warum muss ich dann AddStaticPickup(pickupID,style,x,y,z); holen da passen ja nur 5 Zhalen rein und oben muss man 8 Zahlen reinschreiben. Und wo mache ich das überhaupt? Mit welchem Programm? Geht das auch mit dem SAMP Debug?
Bitte um Hilfe
MFG Maggi
Warum 8 Zahlen? Die zahlen werden durch ein , getrennt und nicht durch ein .
AddStaticPickup(...); kannst du genau wie CreatePickup(...); in OnGameMode/FilterScriptInit schreiben, während bei einem cmd, bei dem ein Pickup erstellt wird nur CreatePickup geht... und es sind beides nur 5 Zahlen
Hi,
ich habe jetzt einen gemacht, der funzt aber net!
#include <a_samp>
#include <dini>
#pragma tabsize 0
#define FILTERSCRIPT
#if defined FILTERSCRIPT
forward OtherTimer();
new Float:TelePos[MAX_PLAYERS][6];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Filterscript >>Deathmatch<< by Markus");
print("--------------------------------------\n");
if(dini_Exists("admplace.ini"))
{
print(" File Founded...Loaded.");
}
else
{
dini_Create("admplace.ini");
print(" > File Created admplace.ini");
}// Autos
AddStaticVehicle(602,-527.8938,2558.7756,53.2200,269.2140,32,1); //
CreatePickup(353,-544.6209,2565.8489,53.5156,13.0590,0,0,0,0,0,0); //
CreatePickup(353,-580.4335,2568.4375,53.5156,93.5865,0,0,0,0,0,0); //
CreatePickup(334,-545.1031,2587.8555,53.5156,354.8855,0,0,0,0,0,0); //
CreatePickup(334,-545.9469,2605.8960,53.5156,2.7190,0,0,0,0,0,0); //
CreatePickup(352,-551.7415,2615.6416,53.5156,69.7729,0,0,0,0,0,0); //
CreatePickup(353,-568.2845,2615.8411,53.5156,93.5865,0,0,0,0,0,0); //
CreatePickup(353,-533.5485,2632.6064,53.4141,310.4152,0,0,0,0,0,0); //
CreatePickup(361,-515.9308,2623.1191,53.4141,211.0876,0,0,0,0,0,0); //
CreatePickup(361,-515.8974,2595.5889,53.4154,179.4406,0,0,0,0,0,0); //
CreatePickup(362,-531.3456,2593.9114,53.4141,87.6331,0,0,0,0,0,0); //
AddStaticVehicle(599,-527.7928,2563.7534,53.6036,268.4630,0,1); //
CreatePickup(0,-533.2427,2575.8704,53.4141,27.6301,0,0,0,0,0,0); //
AddStaticVehicle(593,-548.6215,2628.6819,53.9804,269.7184,60,1); //
AddStaticVehicle(590,-534.7534,2622.8066,57.4293,0.0000,0,0); //
AddStaticVehicle(588,-528.4649,2573.7607,53.3176,267.8003,1,1); //
AddStaticVehicle(602,-527.6131,2558.7271,53.2081,269.6012,75,77); //
AddStaticVehicle(601,-528.5344,2561.7058,53.1728,268.7911,1,1); //
AddStaticVehicle(599,-528.2144,2564.8513,53.6005,268.7818,0,1); //
AddStaticVehicle(597,-527.8385,2567.7114,53.1833,268.6603,0,1); //
AddStaticVehicle(587,-527.5243,2570.8372,53.1402,268.5523,43,1); //
AddStaticVehicle(586,-526.3906,2573.0349,52.9627,267.9414,8,1); //
AddStaticVehicle(586,-526.4226,2574.5259,52.9744,268.1218,13,1); //
AddStaticVehicle(586,-529.0528,2573.2261,52.9343,270.0569,27,1); //
AddStaticVehicle(582,-527.4360,2576.5396,53.4807,269.7509,49,11); //
AddStaticVehicle(581,-527.4675,2579.1492,53.0055,268.5048,66,1); //
AddStaticVehicle(578,-548.3534,2563.2424,54.1391,268.8983,1,1); //
AddStaticVehicle(576,-527.2413,2581.6746,53.0092,269.5401,72,1); //
AddStaticVehicle(574,-520.1175,2582.3066,53.1391,89.6470,26,26); //
AddStaticVehicle(573,-520.6788,2579.0610,54.0635,89.7578,85,6); //
AddStaticVehicle(572,-521.3250,2576.4507,52.9940,90.4489,116,1); //
AddStaticVehicle(572,-521.3861,2574.8042,52.9939,88.3232,4,1); //
AddStaticVehicle(571,-521.4960,2573.1760,52.6979,88.3703,51,53); //
AddStaticVehicle(571,-521.7808,2571.4692,52.6978,90.2376,11,22); //
CreatePickup(0,-520.2037,2569.5610,53.4141,263.4205,0,0,0,0,0,0); //
CreatePickups(1240,-522.1252,2569.4460,53.4141,61.0523,0,0,0,0,0,0); //
CreatePickup(1240,-522.0257,2567.1165,53.4141,189.5202,0,0,0,0,0,0); //
CreatePickup(1240,-520.0412,2566.9277,53.4141,269.1076,0,0,0,0,0,0); //
CreatePickup(1242,-519.7695,2564.3542,53.4141,179.1800,0,0,0,0,0,0); //
CreatePickup(1242,-521.6053,2564.2339,53.4141,85.8058,0,0,0,0,0,0); //
CreatePickup(1242,-522.0297,2561.5938,53.4141,171.9733,0,0,0,0,0,0); //
CreatePickup(1240,-520.2024,2561.8384,53.4141,286.0277,0,0,0,0,0,0); //
CreatePickup(1242,-519.8783,2559.5291,53.4141,192.0269,0,0,0,0,0,0); //
CreatePickup(1242,-521.7795,2559.1045,53.4141,92.6992,0,0,0,0,0,0); //
CreatePickup(1240,-522.3985,2556.7375,53.4141,168.5266,0,0,0,0,0,0); //
CreatePickup(1240,-520.1913,2556.0078,53.4141,247.8007,0,0,0,0,0,0); //
AddStaticVehicle(568,-508.6875,2582.8599,53.2810,269.3637,17,1); //
AddStaticVehicle(568,-508.8144,2580.3467,53.2816,270.6685,17,1); //
AddStaticVehicle(568,-509.3448,2577.9304,53.2805,270.1413,17,1); //
AddStaticVehicle(568,-509.1401,2575.5588,53.2820,269.0411,17,1); //
AddStaticVehicle(568,-509.2116,2573.1218,53.2788,267.9433,17,1); //
AddStaticVehicle(564,-509.1848,2570.3057,52.5848,270.1997,0,0); //
AddStaticVehicle(564,-508.9875,2568.3796,52.5848,271.8676,0,0); //
AddStaticVehicle(564,-508.9110,2566.0864,52.5842,269.3646,0,0); //
AddStaticVehicle(557,-509.3744,2559.4502,53.7900,358.6760,1,1); //
AddStaticVehicle(557,-509.5717,2550.4453,53.7902,358.6364,1,1); //
AddStaticVehicle(539,-508.3359,2603.6553,52.7742,273.7353,79,74); //
AddStaticVehicle(539,-508.3711,2606.3489,52.7745,263.5113,79,74); //
AddStaticVehicle(532,-509.6485,2631.0745,54.3820,358.1140,0,0); //
AddStaticVehicle(532,-509.9961,2620.5261,54.3864,358.1344,0,0); //
AddStaticVehicle(532,-510.3218,2610.4050,54.3910,358.7440,0,0); //
AddStaticVehicle(530,-537.8771,2637.7141,53.1805,88.2363,112,1); //
AddStaticVehicle(530,-538.5129,2635.3447,53.1805,92.1100,112,1); //
AddStaticVehicle(530,-538.5443,2633.0852,53.1801,92.3500,112,1); //
AddStaticVehicle(528,-523.6470,2604.8333,53.6115,178.9804,0,0); //
AddStaticVehicle(528,-523.5264,2611.5999,53.6144,178.9804,0,0); //
AddStaticVehicle(528,-523.3911,2619.2195,53.6147,178.9803,0,0); //
AddStaticVehicle(528,-523.2804,2625.4456,53.6106,178.9803,0,0); //
AddStaticVehicle(522,-539.0952,2627.5066,52.9871,96.3530,8,82); //
AddStaticVehicle(522,-539.2558,2625.8931,52.9772,88.2833,8,82); //
AddStaticVehicle(522,-538.9493,2624.4465,52.9857,90.2080,8,82); //
AddStaticVehicle(520,-495.7954,2623.8794,54.5011,270.9235,0,0); //
AddStaticVehicle(513,-499.2642,2603.5962,54.2388,359.8705,21,34); //
AddStaticVehicle(513,-499.8191,2617.3188,54.1520,350.1352,21,34); //
AddStaticVehicle(510,-539.3003,2613.5649,53.0196,92.2334,39,39); //
AddStaticVehicle(510,-539.5229,2611.0808,53.0260,88.4330,39,39); //
AddStaticVehicle(510,-539.2486,2608.4380,53.0238,85.2621,39,39); //
AddStaticVehicle(504,-540.2778,2600.6455,53.2578,91.6719,45,29); //
AddStaticVehicle(504,-540.4226,2596.4998,53.2788,92.9142,45,29); //
AddStaticVehicle(504,-538.6582,2592.5020,53.2044,90.3617,45,29); //
CreatePickup(1242,-538.8424,2585.0635,53.4154,79.1427,0,0,0,0,0,0); //
CreatePickup(1240,-543.6753,2588.1128,53.5156,53.1358,0,0,0,0,0,0); //
CreatePickup(367,-549.9401,2592.7444,53.9348,82.9027,0,0,0,0,0,0); //
CreatePickup(360,-550.3548,2595.9292,53.9348,353.9152,0,0,0,0,0,0); //
CreatePickup(372,-547.6008,2598.6311,53.7338,307.8548,0,0,0,0,0,0); //
CreatePickup(372,-544.0280,2600.2410,53.5156,289.0546,0,0,0,0,0,0); //
CreatePickup(369,-543.7703,2604.0173,53.5156,356.7352,0,0,0,0,0,0); //
CreatePickup(372,-543.4968,2608.8108,53.5156,356.7352,0,0,0,0,0,0); //
CreatePickup(355,-542.9208,2618.9063,53.5156,356.7352,0,0,0,0,0,0); //
CreatePickup(372,-542.7219,2622.3914,53.5156,356.7352,0,0,0,0,0,0); //
CreatePickup(355,-535.0084,2597.1533,53.4154,270.2544,0,0,0,0,0,0); //
CreatePickup(358,-519.3957,2597.3086,53.4141,270.5678,0,0,0,0,0,0); //
CreatePickup(348,-494.7025,2593.8494,53.4656,270.5678,0,0,0,0,0,0); //
CreatePickup(370,-494.1688,2590.5320,53.4536,270.5678,0,0,0,0,0,0); //
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Filterscript >>Deathmatch<< by Markus");
print("----------------------------------\n");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dm on", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,527.6131,2558.7271,53.2081,269.6012,75,77);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid,527.6131,2558.7271,53.2081,269.6012,75,77);
}
SendClientMessage(playerid, 0xB8860BAA, "*** Willkommen auf der Deathmatchzone ! ***");
SetPlayerInterior(playerid,0);
}
}
return 1;
}
if(strcmp("/dm off", cmdtext, true, 9) == 0)
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2486.8901,2773.2388,10.7780);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 2486.8901,2773.2388,10.7780);
}
SendClientMessage(playerid, 0xB8860BAA, "*** Du hast die Deathmatchzone verlassen ! ***");
SetPlayerInterior(playerid,0);
}
}
return 1;
}
return 0;
}
public OtherTimer()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerState(i) == 2)
{
GetPlayerPos(i, TelePos[i][3], TelePos[i][4], TelePos[i][5]);
if(TelePos[i][5] > 550.0)
{
TelePos[i][0] = 0.0;
TelePos[i][1] = 0.0;
}
if(TelePos[i][5] < 550.0 && TelePos[i][3] != 0.0)
{
TelePos[i][0] = TelePos[i][3];
TelePos[i][1] = TelePos[i][4];
}
}
return 1;
}
}
return 0;
}
Mfg Maggi
Vergleich mal ein Pickup von dir
CreatePickup(353,-533.5485,2632.6064,53.4141,310.4152,0,0,0,0,0,0);
mit einem, was ich dir gezeigt habe:
CreatePickup(pickupID,style,x,y,z);
Beispiel:
CreatePickup(1254, 2,-2347.7458,-1634.9882,483.7031);
Fällt der Unterschied auf?
Hi,
ich habe jetzt alles geändert nur wenn ich /dm on eingebe werde ich nicht zur dm hinteleportiert.
Siehe Script:
#include <a_samp>
#include <dini>
#pragma tabsize 0
#define FILTERSCRIPT
#if defined FILTERSCRIPT
forward OtherTimer();
new Float:TelePos[MAX_PLAYERS][6];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Filterscript >>Deathmatch<< by Markus");
print("--------------------------------------\n");
if(dini_Exists("admplace.ini"))
{
print(" File Founded...Loaded.");
}
else
{
dini_Create("admplace.ini");
print(" > File Created admplace.ini");
}// Autos
AddStaticVehicle(602,-527.8938,2558.7756,53.2200,269.2140,32,1); //
CreatePickup(353,-544.6209,2565.8489,53.5156,13.0590); //
CreatePickup(353,-580.4335,2568.4375,53.5156,93.5865); //
CreatePickup(334,-545.1031,2587.8555,53.5156,354.8855); //
CreatePickup(334,-545.9469,2605.8960,53.5156,2.7190); //
CreatePickup(352,-551.7415,2615.6416,53.5156,69.7729); //
CreatePickup(353,-568.2845,2615.8411,53.5156,93.5865); //
CreatePickup(353,-533.5485,2632.6064,53.4141,310.4152); //
CreatePickup(361,-515.9308,2623.1191,53.4141,211.0876); //
CreatePickup(361,-515.8974,2595.5889,53.4154,179.4406); //
CreatePickup(362,-531.3456,2593.9114,53.4141,87.6331); //
AddStaticVehicle(599,-527.7928,2563.7534,53.6036,268.4630,0,1); //
CreatePickup(0,-533.2427,2575.8704,53.4141,27.6301,0,0,0,0,0,0); //
AddStaticVehicle(593,-548.6215,2628.6819,53.9804,269.7184,60,1); //
AddStaticVehicle(590,-534.7534,2622.8066,57.4293,0.0000,0,0); //
AddStaticVehicle(588,-528.4649,2573.7607,53.3176,267.8003,1,1); //
AddStaticVehicle(602,-527.6131,2558.7271,53.2081,269.6012,75,77); //
AddStaticVehicle(601,-528.5344,2561.7058,53.1728,268.7911,1,1); //
AddStaticVehicle(599,-528.2144,2564.8513,53.6005,268.7818,0,1); //
AddStaticVehicle(597,-527.8385,2567.7114,53.1833,268.6603,0,1); //
AddStaticVehicle(587,-527.5243,2570.8372,53.1402,268.5523,43,1); //
AddStaticVehicle(586,-526.3906,2573.0349,52.9627,267.9414,8,1); //
AddStaticVehicle(586,-526.4226,2574.5259,52.9744,268.1218,13,1); //
AddStaticVehicle(586,-529.0528,2573.2261,52.9343,270.0569,27,1); //
AddStaticVehicle(582,-527.4360,2576.5396,53.4807,269.7509,49,11); //
AddStaticVehicle(581,-527.4675,2579.1492,53.0055,268.5048,66,1); //
AddStaticVehicle(578,-548.3534,2563.2424,54.1391,268.8983,1,1); //
AddStaticVehicle(576,-527.2413,2581.6746,53.0092,269.5401,72,1); //
AddStaticVehicle(574,-520.1175,2582.3066,53.1391,89.6470,26,26); //
AddStaticVehicle(573,-520.6788,2579.0610,54.0635,89.7578,85,6); //
AddStaticVehicle(572,-521.3250,2576.4507,52.9940,90.4489,116,1); //
AddStaticVehicle(572,-521.3861,2574.8042,52.9939,88.3232,4,1); //
AddStaticVehicle(571,-521.4960,2573.1760,52.6979,88.3703,51,53); //
AddStaticVehicle(571,-521.7808,2571.4692,52.6978,90.2376,11,22); //
CreatePickup(0,-520.2037,2569.5610,53.4141,263.4205,0,0,0,0,0,0); //
CreatePickup(1240,-522.1252,2569.4460,53.4141,61.0523); //
CreatePickup(1240,-522.0257,2567.1165,53.4141,189.5202); //
CreatePickup(1240,-520.0412,2566.9277,53.4141,269.1076); //
CreatePickup(1242,-519.7695,2564.3542,53.4141,179.1800); //
CreatePickup(1242,-521.6053,2564.2339,53.4141,85.8058); //
CreatePickup(1242,-522.0297,2561.5938,53.4141,171.9733); //
CreatePickup(1240,-520.2024,2561.8384,53.4141,286.0277); //
CreatePickup(1242,-519.8783,2559.5291,53.4141,192.0269); //
CreatePickup(1242,-521.7795,2559.1045,53.4141,92.6992); //
CreatePickup(1240,-522.3985,2556.7375,53.4141,168.5266); //
CreatePickup(1240,-520.1913,2556.0078,53.4141,247.8007); //
AddStaticVehicle(568,-508.6875,2582.8599,53.2810,269.3637,17,1); //
AddStaticVehicle(568,-508.8144,2580.3467,53.2816,270.6685,17,1); //
AddStaticVehicle(568,-509.3448,2577.9304,53.2805,270.1413,17,1); //
AddStaticVehicle(568,-509.1401,2575.5588,53.2820,269.0411,17,1); //
AddStaticVehicle(568,-509.2116,2573.1218,53.2788,267.9433,17,1); //
AddStaticVehicle(564,-509.1848,2570.3057,52.5848,270.1997,0,0); //
AddStaticVehicle(564,-508.9875,2568.3796,52.5848,271.8676,0,0); //
AddStaticVehicle(564,-508.9110,2566.0864,52.5842,269.3646,0,0); //
AddStaticVehicle(557,-509.3744,2559.4502,53.7900,358.6760,1,1); //
AddStaticVehicle(557,-509.5717,2550.4453,53.7902,358.6364,1,1); //
AddStaticVehicle(539,-508.3359,2603.6553,52.7742,273.7353,79,74); //
AddStaticVehicle(539,-508.3711,2606.3489,52.7745,263.5113,79,74); //
AddStaticVehicle(532,-509.6485,2631.0745,54.3820,358.1140,0,0); //
AddStaticVehicle(532,-509.9961,2620.5261,54.3864,358.1344,0,0); //
AddStaticVehicle(532,-510.3218,2610.4050,54.3910,358.7440,0,0); //
AddStaticVehicle(530,-537.8771,2637.7141,53.1805,88.2363,112,1); //
AddStaticVehicle(530,-538.5129,2635.3447,53.1805,92.1100,112,1); //
AddStaticVehicle(530,-538.5443,2633.0852,53.1801,92.3500,112,1); //
AddStaticVehicle(528,-523.6470,2604.8333,53.6115,178.9804,0,0); //
AddStaticVehicle(528,-523.5264,2611.5999,53.6144,178.9804,0,0); //
AddStaticVehicle(528,-523.3911,2619.2195,53.6147,178.9803,0,0); //
AddStaticVehicle(528,-523.2804,2625.4456,53.6106,178.9803,0,0); //
AddStaticVehicle(522,-539.0952,2627.5066,52.9871,96.3530,8,82); //
AddStaticVehicle(522,-539.2558,2625.8931,52.9772,88.2833,8,82); //
AddStaticVehicle(522,-538.9493,2624.4465,52.9857,90.2080,8,82); //
AddStaticVehicle(520,-495.7954,2623.8794,54.5011,270.9235,0,0); //
AddStaticVehicle(513,-499.2642,2603.5962,54.2388,359.8705,21,34); //
AddStaticVehicle(513,-499.8191,2617.3188,54.1520,350.1352,21,34); //
AddStaticVehicle(510,-539.3003,2613.5649,53.0196,92.2334,39,39); //
AddStaticVehicle(510,-539.5229,2611.0808,53.0260,88.4330,39,39); //
AddStaticVehicle(510,-539.2486,2608.4380,53.0238,85.2621,39,39); //
AddStaticVehicle(504,-540.2778,2600.6455,53.2578,91.6719,45,29); //
AddStaticVehicle(504,-540.4226,2596.4998,53.2788,92.9142,45,29); //
AddStaticVehicle(504,-538.6582,2592.5020,53.2044,90.3617,45,29); //
CreatePickup(1242,-538.8424,2585.0635,53.4154,79.1427,0,0,0,0,0,0); //
CreatePickup(1240,-543.6753,2588.1128,53.5156,53.1358,0,0,0,0,0,0); //
CreatePickup(367,-549.9401,2592.7444,53.9348,82.9027); //
CreatePickup(360,-550.3548,2595.9292,53.9348,353.9152); //
CreatePickup(372,-547.6008,2598.6311,53.7338,307.8548); //
CreatePickup(372,-544.0280,2600.2410,53.5156,289.0546); //
CreatePickup(369,-543.7703,2604.0173,53.5156,356.7352); //
CreatePickup(372,-543.4968,2608.8108,53.5156,356.7352); //
CreatePickup(355,-542.9208,2618.9063,53.5156,356.7352); //
CreatePickup(372,-542.7219,2622.3914,53.5156,356.7352); //
CreatePickup(355,-535.0084,2597.1533,53.4154,270.2544); //
CreatePickup(358,-519.3957,2597.3086,53.4141,270.5678); //
CreatePickup(348,-494.7025,2593.8494,53.4656,270.5678); //
CreatePickup(370,-494.1688,2590.5320,53.4536,270.5678); //
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Filterscript >>Deathmatch<< by Markus");
print("----------------------------------\n");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dm on", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2565.8489,53.5156,13.0590);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 2565.8489,53.5156,13.0590);
}
SendClientMessage(playerid, 0xB8860BAA, "*** Willkommen auf der Deathmatchzone ! ***");
SetPlayerInterior(playerid,0);
}
}
return 1;
}
if(strcmp("/dm off", cmdtext, true, 9) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerAdmin(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2486.8901,2773.2388,10.7780);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 2486.8901,2773.2388,10.7780);
}
SendClientMessage(playerid, 0xB8860BAA, "*** Du hast die Deathmatchzone verlassen ! ***");
SetPlayerInterior(playerid,0);
}
}
return 1;
}
return 0;
}
public OtherTimer()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerState(i) == 2)
{
GetPlayerPos(i, TelePos[i][3], TelePos[i][4], TelePos[i][5]);
if(TelePos[i][5] > 550.0)
{
TelePos[i][0] = 0.0;
TelePos[i][1] = 0.0;
}
if(TelePos[i][5] < 550.0 && TelePos[i][3] != 0.0)
{
TelePos[i][0] = TelePos[i][3];
TelePos[i][1] = TelePos[i][4];
}
}
return 1;
}
}
return 0;
}
Mmh, habt ihr eine Ahnung was ich jetzt falsch habe? Ich habe ICQ da könnt ihr euch sie dann genauer angucken. Meine Nummer: 369-263-543
MfG Maggi
Vllt mal ein IsPlayerConnected bei /dm on rausmachen....
Hi,
wenn ich dann compile drücke kommt eine windowsfehlermeldung! Nichtsenden/Senden kennt ihr ja
So sieht er dann aus:
#include <a_samp>
#include <dini>
#pragma tabsize 0
#define FILTERSCRIPT
#if defined FILTERSCRIPT
forward OtherTimer();
new Float:TelePos[MAX_PLAYERS][6];
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Filterscript >>Deathmatch<< by Markus");
print("--------------------------------------\n");
if(dini_Exists("admplace.ini"))
{
print(" File Founded...Loaded.");
}
else
{
dini_Create("admplace.ini");
print(" > File Created admplace.ini");
}
AddStaticVehicle(602,-527.8938,2558.7756,53.2200,269.2140,32,1); //
CreatePickup(353,-544.6209,2565.8489,53.5156,13.0590); //
CreatePickup(353,-580.4335,2568.4375,53.5156,93.5865); //
CreatePickup(334,-545.1031,2587.8555,53.5156,354.8855); //
CreatePickup(334,-545.9469,2605.8960,53.5156,2.7190); //
CreatePickup(352,-551.7415,2615.6416,53.5156,69.7729); //
CreatePickup(353,-568.2845,2615.8411,53.5156,93.5865); //
CreatePickup(353,-533.5485,2632.6064,53.4141,310.4152); //
CreatePickup(361,-515.9308,2623.1191,53.4141,211.0876); //
CreatePickup(361,-515.8974,2595.5889,53.4154,179.4406); //
CreatePickup(362,-531.3456,2593.9114,53.4141,87.6331); //
AddStaticVehicle(599,-527.7928,2563.7534,53.6036,268.4630,0,1); //
CreatePickup(0,-533.2427,2575.8704,53.4141,27.6301,0,0,0,0,0,0); //
AddStaticVehicle(593,-548.6215,2628.6819,53.9804,269.7184,60,1); //
AddStaticVehicle(590,-534.7534,2622.8066,57.4293,0.0000,0,0); //
AddStaticVehicle(588,-528.4649,2573.7607,53.3176,267.8003,1,1); //
AddStaticVehicle(602,-527.6131,2558.7271,53.2081,269.6012,75,77); //
AddStaticVehicle(601,-528.5344,2561.7058,53.1728,268.7911,1,1); //
AddStaticVehicle(599,-528.2144,2564.8513,53.6005,268.7818,0,1); //
AddStaticVehicle(597,-527.8385,2567.7114,53.1833,268.6603,0,1); //
AddStaticVehicle(587,-527.5243,2570.8372,53.1402,268.5523,43,1); //
AddStaticVehicle(586,-526.3906,2573.0349,52.9627,267.9414,8,1); //
AddStaticVehicle(586,-526.4226,2574.5259,52.9744,268.1218,13,1); //
AddStaticVehicle(586,-529.0528,2573.2261,52.9343,270.0569,27,1); //
AddStaticVehicle(582,-527.4360,2576.5396,53.4807,269.7509,49,11); //
AddStaticVehicle(581,-527.4675,2579.1492,53.0055,268.5048,66,1); //
AddStaticVehicle(578,-548.3534,2563.2424,54.1391,268.8983,1,1); //
AddStaticVehicle(576,-527.2413,2581.6746,53.0092,269.5401,72,1); //
AddStaticVehicle(574,-520.1175,2582.3066,53.1391,89.6470,26,26); //
AddStaticVehicle(573,-520.6788,2579.0610,54.0635,89.7578,85,6); //
AddStaticVehicle(572,-521.3250,2576.4507,52.9940,90.4489,116,1); //
AddStaticVehicle(572,-521.3861,2574.8042,52.9939,88.3232,4,1); //
AddStaticVehicle(571,-521.4960,2573.1760,52.6979,88.3703,51,53); //
AddStaticVehicle(571,-521.7808,2571.4692,52.6978,90.2376,11,22); //
CreatePickup(0,-520.2037,2569.5610,53.4141,263.4205,0,0,0,0,0,0); //
CreatePickups(1240,-522.1252,2569.4460,53.4141,61.0523); //
CreatePickup(1240,-522.0257,2567.1165,53.4141,189.5202); //
CreatePickup(1240,-520.0412,2566.9277,53.4141,269.1076); //
CreatePickup(1242,-519.7695,2564.3542,53.4141,179.1800); //
CreatePickup(1242,-521.6053,2564.2339,53.4141,85.8058); //
CreatePickup(1242,-522.0297,2561.5938,53.4141,171.9733); //
CreatePickup(1240,-520.2024,2561.8384,53.4141,286.0277); //
CreatePickup(1242,-519.8783,2559.5291,53.4141,192.0269); //
CreatePickup(1242,-521.7795,2559.1045,53.4141,92.6992); //
CreatePickup(1240,-522.3985,2556.7375,53.4141,168.5266); //
CreatePickup(1240,-520.1913,2556.0078,53.4141,247.8007); //
AddStaticVehicle(568,-508.6875,2582.8599,53.2810,269.3637,17,1); //
AddStaticVehicle(568,-508.8144,2580.3467,53.2816,270.6685,17,1); //
AddStaticVehicle(568,-509.3448,2577.9304,53.2805,270.1413,17,1); //
AddStaticVehicle(568,-509.1401,2575.5588,53.2820,269.0411,17,1); //
AddStaticVehicle(568,-509.2116,2573.1218,53.2788,267.9433,17,1); //
AddStaticVehicle(564,-509.1848,2570.3057,52.5848,270.1997,0,0); //
AddStaticVehicle(564,-508.9875,2568.3796,52.5848,271.8676,0,0); //
AddStaticVehicle(564,-508.9110,2566.0864,52.5842,269.3646,0,0); //
AddStaticVehicle(557,-509.3744,2559.4502,53.7900,358.6760,1,1); //
AddStaticVehicle(557,-509.5717,2550.4453,53.7902,358.6364,1,1); //
AddStaticVehicle(539,-508.3359,2603.6553,52.7742,273.7353,79,74); //
AddStaticVehicle(539,-508.3711,2606.3489,52.7745,263.5113,79,74); //
AddStaticVehicle(532,-509.6485,2631.0745,54.3820,358.1140,0,0); //
AddStaticVehicle(532,-509.9961,2620.5261,54.3864,358.1344,0,0); //
AddStaticVehicle(532,-510.3218,2610.4050,54.3910,358.7440,0,0); //
AddStaticVehicle(530,-537.8771,2637.7141,53.1805,88.2363,112,1); //
AddStaticVehicle(530,-538.5129,2635.3447,53.1805,92.1100,112,1); //
AddStaticVehicle(530,-538.5443,2633.0852,53.1801,92.3500,112,1); //
AddStaticVehicle(528,-523.6470,2604.8333,53.6115,178.9804,0,0); //
AddStaticVehicle(528,-523.5264,2611.5999,53.6144,178.9804,0,0); //
AddStaticVehicle(528,-523.3911,2619.2195,53.6147,178.9803,0,0); //
AddStaticVehicle(528,-523.2804,2625.4456,53.6106,178.9803,0,0); //
AddStaticVehicle(522,-539.0952,2627.5066,52.9871,96.3530,8,82); //
AddStaticVehicle(522,-539.2558,2625.8931,52.9772,88.2833,8,82); //
AddStaticVehicle(522,-538.9493,2624.4465,52.9857,90.2080,8,82); //
AddStaticVehicle(520,-495.7954,2623.8794,54.5011,270.9235,0,0); //
AddStaticVehicle(513,-499.2642,2603.5962,54.2388,359.8705,21,34); //
AddStaticVehicle(513,-499.8191,2617.3188,54.1520,350.1352,21,34); //
AddStaticVehicle(510,-539.3003,2613.5649,53.0196,92.2334,39,39); //
AddStaticVehicle(510,-539.5229,2611.0808,53.0260,88.4330,39,39); //
AddStaticVehicle(510,-539.2486,2608.4380,53.0238,85.2621,39,39); //
AddStaticVehicle(504,-540.2778,2600.6455,53.2578,91.6719,45,29); //
AddStaticVehicle(504,-540.4226,2596.4998,53.2788,92.9142,45,29); //
AddStaticVehicle(504,-538.6582,2592.5020,53.2044,90.3617,45,29); //
CreatePickup(1242,-538.8424,2585.0635,53.4154,79.1427,0,0,0,0,0,0); //
CreatePickup(1240,-543.6753,2588.1128,53.5156,53.1358,0,0,0,0,0,0); //
CreatePickup(367,-549.9401,2592.7444,53.9348,82.9027); //
CreatePickup(360,-550.3548,2595.9292,53.9348,353.9152); //
CreatePickup(372,-547.6008,2598.6311,53.7338,307.8548); //
CreatePickup(372,-544.0280,2600.2410,53.5156,289.0546); //
CreatePickup(369,-543.7703,2604.0173,53.5156,356.7352); //
CreatePickup(372,-543.4968,2608.8108,53.5156,356.7352); //
CreatePickup(355,-542.9208,2618.9063,53.5156,356.7352); //
CreatePickup(372,-542.7219,2622.3914,53.5156,356.7352); //
CreatePickup(355,-535.0084,2597.1533,53.4154,270.2544); //
CreatePickup(358,-519.3957,2597.3086,53.4141,270.5678); //
CreatePickup(348,-494.7025,2593.8494,53.4656,270.5678); //
CreatePickup(370,-494.1688,2590.5320,53.4536,270.5678); //
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Filterscript >>Deathmatch<< by Markus");
print("----------------------------------\n");
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dm on", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,0.0.0.0.0);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid,0.0.0.0.0);
}
SendClientMessage(playerid, 0xB8860BAA, "*** Willkommen auf der Deathmatchzone ! ***");
SetPlayerInterior(playerid,0);
}
}
return 1;
}
if(strcmp("/dm off", cmdtext, true, 9) == 0)
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 0.0.0.0.0);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 0.0.0.0.0);
}
SendClientMessage(playerid, 0xB8860BAA, "*** Du hast die Deathmatchzone verlassen ! ***");
SetPlayerInterior(playerid,0);
}
}
return 1;
}
return 0;
}
public OtherTimer()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerState(i) == 2)
{
GetPlayerPos(i, TelePos[i][3], TelePos[i][4], TelePos[i][5]);
if(TelePos[i][5] > 550.0)
{
TelePos[i][0] = 0.0;
TelePos[i][1] = 0.0;
}
if(TelePos[i][5] < 550.0 && TelePos[i][3] != 0.0)
{
TelePos[i][0] = TelePos[i][3];
TelePos[i][1] = TelePos[i][4];
}
}
return 1;
}
}
return 0;
}
MfG Maggi
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/dm on", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,0.0.0.0.0);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid,0.0.0.0.0);
}
SendClientMessage(playerid, 0xB8860BAA, "*** Willkommen auf der Deathmatchzone ! ***");
SetPlayerInterior(playerid,0);
}
return 1;
}
man...achte mal auf die }
genauso hier....
if(strcmp("/dm off", cmdtext, true, 9) == 0)
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 0.0.0.0.0);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 0.0.0.0.0);
}
SendClientMessage(playerid, 0xB8860BAA, "*** Du hast die Deathmatchzone verlassen ! ***");
SetPlayerInterior(playerid,0);
}
return 1;
}
so müsste beides richtig sein...und das nächste mal wenn du sowas langes hast machs in pastebin!!
KavKus das hat er locker nicht selber gescriptet...das sit ein typisches STRG-C && STRG-V Script^^
MONTI!!!
Hör einfach auf mich ständig zu BELEIDIGEN und zu nNERVEN!!!
MfG
Wer nervt hier wen, he?
Ich denk mal du nervst leute hier...
kavus ich denke das ist ein Forum wo man sich hilfe holen kann! Wie kann man in einem forum einen nerven indem man in fragt wie es funktioniert? Wenn du keinem helfen willst, oder hilfe brauchst sollst du dich erst garnet registrieren!
MfG Maggi