du müsst es einfach so Machen das er bei dem restart Saved oder bei OngamemodeExit
Beiträge von Sony
-
-
ocmd:setfrakt(playerid,params[])
{
if(!IsPlayerAnAdmin(playerid,3)) return SendClientMessage(playerid,WARN_ROT,"Diesen Befehl kannst du nicht nutzen. Mindestens benötigter Rang: {00FF5A}Super Moderator.");
new string[128], string2[128], pID, fraktid;if(sscanf(params,"ui",pID,fraktid))
{
SendClientMessage(playerid,WEISS,"BENUTZE: /setfrakt [ID] [Fraktion]");
SendClientMessage(playerid,ROT,"1 = Polizei");
SendClientMessage(playerid,ROT,"2 = Medic");
SendClientMessage(playerid,ROT,"3 = .....");
return 1;
}
for(new i = 0; i >= 8; i++)
{
new fraktname[64];
new info[128];
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{fraktname="Zivilist";}
case 1:{fraktname="Los Santos Police Department";}
case 2:{fraktname="Rettungsdienst";}
case 3:{fraktname="Hitman";}
case 4:{fraktname="Wheelman";}
case 5:{fraktname="Ordnungsamt";}
case 6:{fraktname="Fahrschule";}
case 7:{fraktname="Staat Los Santos";}
}
format(info,sizeof(info),"Fraktionen: %i. %s",i,fraktname);
SendClientMessage(playerid,BLAU,info);
}
return 1;
} -
CreatePickup(1239,1,Autohaus[i][PosX],Autohaus[i][PosY],Autohaus[i][PosZ], -1);
kaufauto[i] = CreateVehicle[AutoKauf[i][modelid],AutoKauf[i][PosX],AutoKauf[i][PosY],AutoKauf[i][PosZ],-1,-1,60);
sollte funktionieren
mfg Sony
-
der /arrest befehl wäre hilfreich
-
falscher Bereich kommt in Sponsoring rein
-
such mal nach
new CarSpawns
und dann mach den ganzen Code zu das.
new CarSpawns[182][eCars];
// {405,-2125.7424,658.0462,52.2988,93.9612}//carid 90
/* {426,-2158.0222,657.3932,52.2775,272.8372},
{445,-1926.3204,585.6179,34.9963,359.8303},
{492,2229.2,-1170.2,25.7,86.9},
{507,-2214.8047,-82.7890,35.0474,0.6476},
{545,2217.0,-1157.2,25.7,269.8},
{547,405.9748,-1264.3921,50.1237,24.2110},
{550,-1497.4576,845.8479,6.9382,88.5201},
{551,-1741.0051,811.0620,24.5782,270.6681},
{560,2106.4695,-1248.7920,24.0461,0.1524},
{566,2196.2891,-1277.7905,24.2147,180.4522},
{402,-1704.3132,999.7747,17.3646,90.0725},
{405,216.5521,-1431.4004,13.0853,132.5749},
{554,334.2231,-1343.7405,14.3828,209.9581},
{507,697.4343,-1230.9486,16.5063,298.7916},
{545,723.9850,-1121.5535,18.1450,333.9010},
{536,666.8468,-467.6579,16.0734,90.8623},
{560,668.1161,-546.2436,16.0413,89.4239},
{540,912.2176,-996.2035,38.1402,7.5764},
{482,-1758.3512,910.7219,24.5923,269.8633},
{547,981.8715,-917.3546,41.5443,88.0589},
{550,1188.4082,-925.1859,42.8590,277.5563},
{400,-1699.4597,1035.9624,45.0934,91.6588},
{405,1450.2,-937.1,36.2,269.6909}, //116
{492,2148.3257,-1175.2518,24.1959,269.6909},
{507,-1786.7155,1205.1598,24.7812,178.8758},
{545,-1716.5907,1350.4829,6.8346,44.2506},
{540,2348.2910,-1167.9983,27.3637,323.1586},
{482,2502.0388,-1134.9507,39.1953,150.9506},
{547,-2166.4534,1251.1536,27.2650,1.0352},
{550,2853.1858,-1326.8011,11.1511,278.9301},
{551,-2040.4761,1107.7072,53.4166,89.8473},
{533,2796.9031,-1567.2024,10.6386,272.4041},
{482,2813.2175,-1673.0276,9.6638,2.3369},
{547,2827.6736,-1703.9755,9.7308,77.2896},
{550,2809.3872,-1837.2391,9.7398,268.9880},
{551,-2438.0784,1341.1190,7.6988,84.5107},
{566,2411.5386,-2134.7576,13.9352,0.7795},
{554,1389.7467,-2695.9370,13.4164,121.1818},
{405,783.1359,-1601.8208,13.2577,270.9069},
{554,782.7205,-1619.3584,13.2653,93.0550},
{426,923.0841,-1361.7990,13.0324,181.1371},
{445,-2644.6819,1342.3251,6.8981,270.7903},
{492,1174.6599,-922.1939,43.1189,276.8927},
{507,1363.0210,-1288.3124,13.2839,180.1453},
{545,1363.2723,-1260.8229,13.0954,179.5841},
{540,2383.5627,-1927.9207,13.2436,359.6281},
{482,-2635.0933,1377.1693,6.8692,180.6415},
{547,-2513.1277,1209.6135,37.1506,270.2610},
{550,2396.6899,-1966.8123,13.2793,271.6838},
{551,2391.1135,-1500.6554,23.6355,269.7709},
{560,-2273.8679,921.3550,66.3095,0.6336},
{405,-2153.0779,953.6602,79.7271,180.3209},
{554,334.3586,-1789.3143,4.6717,178.7722},
{426,343.8039,-1808.9827,4.3090,181.8368},
{445,-2129.2915,787.6183,69.3346,87.1812},
{492,646.4998,-1771.6411,13.2905,348.7706},
{507,-2151.9524,395.9857,34.9395,180.7696},//150
{545,-2078.8027,265.4074,35.1672,268.0607},
{540,-2034.8334,178.8471,28.5682,269.9615},
{482,438.9431,-1625.4088,25.7951,0.1850},
{547,453.3896,-1494.3240,30.7917,7.7513},
{550,487.6469,-1516.2312,20.0235,185.5384},
{551,300.5775,-1490.8882,24.3748,235.1359},
{560,-2180.1323,41.8542,35.1717,269.9866},
{566,524.0590,-1375.0093,15.8231,193.3626},
{405,598.9131,-1519.1414,14.8214,180.4083},
{554,-2488.1333,-133.0336,25.3507,90.1064},
{426,-2499.5225,45.0666,25.2641,89.9251},
{445,-2636.7976,-55.4094,4.0630,359.9826},
{492,-2718.5115,-124.4794,4.3505,269.1428},
{507,736.8572,-1337.1550,13.3140,271.3832},
{545,856.7003,-1363.1852,13.4093,179.8542},//165
{482,888.1506,-1659.2727,13.3296,1.2414},
{547,879.1024,-1669.2560,13.3305,180.5853},
{550,-2134.1443,-453.9576,35.1479,95.0877},
{551,920.4441,-1823.0966,12.3452,84.1821},
{560,-1639.3900,-567.5057,13.9530,80.1994},
{566,1062.6744,-1757.9412,13.1956,89.0572},
{405,-2265.1501,148.9554,34.8837,269.3405},
{554,1081.8948,-1629.9564,13.4064,90.0880},
{426,981.7941,-1523.5115,13.3379,267.2751},
{445,1014.7464,-1434.4586,13.3292,266.3129},
{492,492.6386,-1555.3513,17.1462,213.1128},//DERBY
{507,2684.6,-2019.0,13.3 ,0.8777},
{545,1096.1,-1379.9,13.3,270.1909},//178
{540,-2743.6772,-303.1675,7.1422,49.0919},//179 DERBY
{482,1182.2568,-1219.2407,18.4163,0.5578},
{547,1260.9978,-1187.1921,23.3559,183.3606},
{550,1331.9304,-1081.3899,24.9941,90.4092},
{551,1284.8755,-1525.5013,13.3451,269.4388},//near taxi
{560,1279.1887,-1539.2032,13.3201,94.8070},//near taxi
{566,1275.9120,-1646.7448,13.3273,267.2669},
{405,-2200.5999,-2503.3606,30.4213,321.7648},
{554,1253.9153,-1833.3832,13.1734,175.3692},
{426,1279.2875,-1814.4156,13.1657,93.6385},
{445,-2205.5234,-2439.3523,30.4224,51.1660},
{492,1479.9131,-1737.8813,13.2418,269.5805},
{507,1508.1047,-1737.7089,13.2418,270.0250},
{545,1618.0411,-1891.1044,13.3278,0.3364},
{540,1623.7291,-1892.7234,13.3307,180.0126},
{482,-2079.6389,-2303.7983,30.3466,322.7155},
{547,1743.5837,-1844.6041,13.3557,180.3384},
{550,1838.1904,-1871.3842,13.1703,358.5452},
{551,-1557.8568,-2741.5632,48.3481,144.5150},
{560,1777.1376,-1910.0310,13.1681,91.0725},
{566,-16.7753,-2503.6228,36.4593,121.7103},
{566,1981.0780,-1986.3513,13.3275,2.1479},
{405,218.4485,-173.3024,1.3809,90.0117},
{554,199.5586,-155.4912,1.3827,0.3471},
{426,1984.7471,-2066.7776,13.1625,359.7226},
{445,1938.0565,-2086.8459,13.3429,268.3414},
{492,318.4840,-86.0588,2.0804,90.9324},
{507,-113.9556,-39.4382,2.9209,164.0464},
{545,115.3321,-217.1147,1.3028,89.7911},
{540,1748.0751,-2084.2090,13.3324,0.4337},
{482,1560.5026,-2260.5457,13.3258,268.7398},
{547,1461.6943,-1505.1688,13.2541,356.9007},
{550,1426.4930,-1402.3170,13.1800,181.0290},
{551,1435.0645,-1325.6835,13.2580,270.9400},
{560,1513.9486,-1272.5691,14.2685,181.0697},
{566,1583.7561,-1338.7435,16.1896,359.8619},
{405,-2760.5156,-312.1838,7.1557,3.8747},//DERBY
{554,-2766.6875,-281.2887,7.1613,180.1256},//DERBY
{426,1430.2316,-1054.8555,22.8693,359.3625},
{445,1574.1168,-1036.7643,23.6151,145.6786},
//{492,1617.6676,-1009.8663,23.6052,356.8697},
{507,1645.3188,-1036.5238,23.6027,0.7258},
{545,485.9422,-1467.4543,18.3154,157.6833},//DERBY
{540,1770.4874,-1060.9886,23.6658,179.2750},
{482,-2781.4741,-281.6054,7.1515,181.0279},//DERBY
{547,1653.1766,-1134.8994,23.6110,178.6835},
{550,1617.3746,-1132.8293,23.6117,91.7300},
{551,1790.0190,-1292.9065,13.2653,267.2964},
{560,1754.3009,-1476.8170,13.2402,269.6320},
{554,2003.3417,-1121.4993,26.3879,357.4926},
{426,2084.2334,-1170.0986,24.2042,91.8975},
{492,2229.2278,-1345.4033,23.6892,93.3009},
{507,2332.5684,-1362.4845,23.7297,358.1198},
{545,2384.1567,-1275.6326,23.9198,101.6528},
{540,2432.3149,-1226.0785,24.9941,17.9805},
{482,2426.9612,-1224.4158,25.0000,202.7159},
{547,2438.4309,-1321.6925,24.1225,269.7535},
{551,2612.9702,-1262.6970,48.2461,269.4752},
{560,2659.4529,-1428.4343,30.1790,266.5051},
{566,2659.7053,-1422.6743,30.1714,89.8159},
{405,2485.5313,-1556.1823,23.7478,178.8338},
{554,2478.7664,-1555.7006,23.7226,183.6043},
{426,2605.3967,-1365.8829,34.6461,359.9891},
{445,2754.7136,-1373.0253,40.1154,91.4169},
{492,2717.3662,-1468.0308,30.0894,1.0298},
{507,2816.7195,-1449.4285,15.9549,268.9106},
{545,2816.9937,-1441.5880,15.9544,90.7779},
{540,2681.9016,-1673.3879,9.1290,0.5605},
{482,2442.5845,-1642.7507,13.1644,180.3454},
{547,2361.3120,-1674.6146,13.2505,357.4959},
{550,2298.3535,-1633.7542,14.3849,80.8107},
{551,2297.9077,-1639.9464,14.4352,94.4292},
{560,2255.4045,-1664.5736,15.1304,74.6898},
{566,2234.1057,-1726.9386,13.1665,271.7536},
{405,2319.3833,-1716.6823,13.2518,359.8540},
{554,2474.5105,-1755.9194,13.2522,270.5967},
{426,2501.8213,-1754.2794,13.1208,176.4916}, //= 255
{445,2489.1560,-1952.6886,13.1366,178.1629},
{492,2495.4326,-1953.2922,13.1299,356.5514},
{507,2306.7168,-1989.6796,13.2639,184.8385},
{482,2056.1807,-1904.7751,13.2502,2.2910},
{550,2064.9871,-1919.1674,13.2504,180.8575},
{551,1886.4812,-2022.9338,13.0964,179.4265},
{560,1824.8976,-2019.8374,13.0875,272.5273},
{566,1942.1669,-1862.6425,13.2679,264.5590},
{405,1923.9409,-1795.5616,13.0877,90.0886},
{554,1807.0905,-1571.7120,13.1659,125.1048},
{426,1809.9016,-1676.0603,13.2422,180.7589},
{445,1809.6266,-1653.3402,13.2365,180.6530},
{492,1809.7056,-1660.3019,13.2380,180.6262},
{507,1978.4003,-1675.0157,15.6741,269.7336},
{545,1974.8230,-1693.5488,15.6741,92.1162},
{540,1929.2253,-1584.6954,13.2700,185.5542},
{482,1731.9725,-1590.8959,13.1630,77.7249},
{547,1721.5776,-1589.2834,13.1526,80.9057},
{550,1695.1428,-1519.2667,13.1671,0.7121},
{551,1694.7080,-1501.7454,13.1675,357.8150}
*/ -
-
SQL
Alles anzeigen---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3e-RC4, (C)2005-2011 SA-MP Team [22:33:22] filterscripts = "" (string) [22:33:22] [22:33:22] Server Plugins [22:33:22] -------------- [22:33:22] Loading plugin: mysql [22:33:22] > MySQL plugin R6-2 successfully loaded. [22:33:22] Loaded. [22:33:22] Loaded 1 plugins. [22:33:22] [22:33:22] Filterscripts [22:33:22] --------------- [22:33:22] Loaded 0 filterscripts. [22:33:22] <-| [MYSQL] Verbindung zur Datenbank wurde erfolgreich hergestellt! [22:33:22] ---------------------------------- [22:33:22] Sony Roleplay [22:33:22] ---------------------------------- [22:33:22] Number of vehicle models: 2
-
Dieses Headset kann ich dir nur Empfehlen, ich besitze dieses Headset jetzt über 1 Jahr und Funktioniert genau so wie am ersten Tag.
-
Guten Tag Community,
Ich habe ein Problem, ich wollte jetzt eine Fraktion Box erstellen, jedoch möchte er das nicht speichern.
Laden tut er auch nicht.Tabelle und so alles erstellt.
stock FraktionSpeichern()
{
new str[10];
for(new i=0;i<MAX_FRAKTIONEN;i++)
{
valstr(str, i);
mysql_SetInt("fraktionen", "Kasse", FraktionInfo[i][FraktionKasse], "FraktionID", str);
mysql_SetInt("fraktionen", "Drogen", FraktionInfo[i][FraktionDrogen], "FraktionID", str);
mysql_SetInt("fraktionen", "Waffen", FraktionInfo[i][FraktionWaffen], "FraktionID", str);
}
return 1;
}stock FraktionLaden()
{
for(new i=0;i<MAX_FRAKTIONEN;i++)
{
FraktionInfo[i][FraktionKasse] = mysql_GetInt2("fraktionen", "Kasse", "FraktionsID", i);
FraktionInfo[i][FraktionDrogen] = mysql_GetInt2("fraktionen", "Drogen", "FraktionsID", i);
FraktionInfo[i][FraktionWaffen] = mysql_GetInt2("fraktionen", "Waffen", "FraktionsID", i);
}
return 1;
}stock mysql_GetInt2(Table[], Field[], Where[], Is)
{
new query[128];
format(query, 128, "SELECT %s FROM %s WHERE %s = '%i'", Field, Table, Where, Is);
mysql_query(query);
mysql_store_result();
new sqlint = mysql_fetch_int();
mysql_free_result();
return sqlint;
}mfg Sony
-
Kohlenhydrate wird zu Zucker Abends.
-
Naya, nach einer Zeit gewöhnt man sich dran.
-
Trink jeden Morgen, 2 Eier dann biste Fit für den Tag!
-
Spieler anscheinend auch,OnPlayerKlickPlayer()
Das geht glaub ich schon seit der 0.3a
-
Die Idee ist echt nicht schlecht
Nur halt schade das es net gehtWarum sollte es nicht gehen?
Das mit einem Viedeo einfügen nicht, aber mit NPC ist das Klar möglich
-
Nein die stink normale 0.3d Geht
Bitte wen man keine Ahnung hat Leise sein.
In der 0.3d ist SpawnPlayer Verbuggt.
Beheben kannst du es so:
Mach diese Zeile vor SpawnPlayer
SetSpawnInfo(playerid, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
-
if (strcmp("/buyscheine", cmdtext, true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 923.59997558594, -1221.1999511719, 17.700000762939))
{
ShowPlayerDialog(playerid,buyscheine,DIALOG_STYLE_LIST,"Scheine","Auto - 10000$","Wählen","Zurück");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du kannst hier Keine Scheine Kaufen!");
}
return 1;
}Du hast überprüft ob du nicht an der Stelle bist!
-
-
-
if(dialogid == WKAUFEN)
{
if(response==0)
{
return 1;
}
if(response==1)
{
if(listitem==0)
{
GivePlayerWeapon(playerid,22,1);
GivePlayerMoney(playerid,-800);
SendClientMessage(playerid,0x00FF28FF,"Du hast dir eine Pistole für 800$ gekauft.");
}
if(listitem==1)
{
GivePlayerWeapon(playerid,24,1);
GivePlayerMoney(playerid,-1200);
SendClientMessage(playerid,0x00FF28FF,"Du hast dir eine Dessert Eagle für 1200$ gekauft.");
}
if(listitem==2)
{
GivePlayerWeapon(playerid,25,1);
GivePlayerMoney(playerid,-2000);
SendClientMessage(playerid,0x00FF28FF,"Du hast dir eine Shotgun für 2000$ gekauft.");
}
if(listitem==3)
{
GivePlayerWeapon(playerid,27,1);
GivePlayerMoney(playerid,-3000);
SendClientMessage(playerid,0x00FF28FF,"Du hast dir eine Combat Shotgun für 3000$ gekauft.");
}
if(listitem==4)
{
GivePlayerWeapon(playerid,28,1);
GivePlayerMoney(playerid,-1500);
SendClientMessage(playerid,0x00FF28FF,"Du hast dir eine UZI für 1500$ gekauft.");
}
if(listitem==5)
{
GivePlayerWeapon(playerid,29,1);
GivePlayerMoney(playerid,-2500);
SendClientMessage(playerid,0x00FF28FF,"Du hast dir eine MP5 für 2500$ gekauft.");
}
if(listitem==6)
{
GivePlayerWeapon(playerid,30,1);
GivePlayerMoney(playerid,-5000);
SendClientMessage(playerid,0x00FF28FF,"Du hast dir eine AK-47 für 5000$ gekauft.");
}
if(listitem==7)
{
GivePlayerWeapon(playerid,31,1);
GivePlayerMoney(playerid,-7000);
SendClientMessage(playerid,0x00FF28FF,"Du hast dir eine M4 für 7000$ gekauft.");
}
}
return 1;
}if(strcmp("/wkaufen",cmdtext,true,10)==0)
{
ShowPlayerDialog(playerid,WKAUFEN,DIALOG_STYLE_LIST,"Willkommen im AmmuNation","Pistole\nDeagle\nUZI\nShotgun\nCombat Shotgun\nMP5\nAK-47\nM4","Kaufen","Abbrechen");
return 1;
}jetzt sollte es gehen!