Jump to content

FilipMichalik

Uživatel
  • Příspěvků

    23
  • Registrován

  • Aktivní

Reputace

0 Na nule

About FilipMichalik

  • Moto
    Bronze I - nováček
  • Narozeniny Leden 30

Kontaktní údaje

  • Web
    Array
  • Steam
    Array

Návštěvníci

34 profile views
  1. Díky , příště to zkusím promakat víc
  2. Zdravím, chtěl bych se zeptat jestli jde vytvořit nějaký script na bázi připojení 1 hráč za 1 IP adresu. Zkrátka že se nemůžou připojit 2 hráči ze stejné IP. Děkuji
  3. Už před delší dobou jsem se rozhodl že zkusím něco nového, napadlo mě spousta věcí a jelikož se mi nějakým způsobem líbí programovat a vytvářet věci, které lidi zaujmou a budou je mít rádi, tak mě napadlo že se pokusím spustit SA:MP roleplay server. Samotné Gta San Andreas je hra mého dětství, tak jsem si myslel že zprovoznit takový server bude brnkačka, avšak opak je pravdou, není to vůbec sranda. Jelikož studuji na IT škole tak mi v tomto ohledu programování v pawnu dost pomohlo. Teď je to už zhruba měsíc co jsem nějakých záhadným způsobem spustil server. Komunita tady na pawno.cz mi také velmi pomohla, čehož si nesmírně cením. No ale abych se tedy už dostal k věci.. 20.2.2020 spouštím SA:MP server typu roleplay, budu velmi rád když se přidáte na náš discord a po spuštění serveru si s námi zahrajete. Jelikož jsem v pawnu opravdu přece jenom začátečník, tak budu rád za každou radu a kladný či záporný ohlas. Jsem člověk co se z chyb učí takže budu rád i za negativní komentáře. Děkuji všem! Co můžete očekávat? - Zábavný roleplay - Admin team co vám pomůže v rámci svých možností - Pravidelné updaty - Eventy - Custom interiéry - Frakce - Gangy - A mnoho více nalezneze na našem discordu IP serveru: 89.203.248.231:7777 (uzamčený) Discord: https://discord.gg/4Z8h4Nr Web: http://czechzone.cekuj.net/
  4. Ne, jenom toto: BananaJoe 560 .. nedalo by se to nějak vyřešit přes fclose(handle); Zkoušel jsem to hodin hned pod spawn ale padá mi server
  5. Dobře díky, ale ted mi hlavně jde o to že hráč má zapsané jedno vozidlo v souboru, ale když si ho chci vytáhnout tak se mi vytáhne tři krát (ke koupi jsou 3 typy aut)
  6. Ne, hráč by měl mít pouze 1 auto, a to se mu spawne po napsani /garaz2 (ta dvojka je tam protože jsem zkoušel více způsobů). A díky za oběvení té chyby
  7. Aha díky, zapoměl jsem na to. Ale teď se mi sice nespawnou všechny typy ale 3x ten typ který mám mít
  8. CMD:garaz2(playerid, params[]) { new File:handle = fopen("cars.txt", io_read); new line[128]; new player[25]; new model; if(handle) { while (fread(handle, line, sizeof(line))) { if (!sscanf(line, "s[25]d", player, model)) { if (!strcmp(player, PlayerName(playerid), true)) { AddStaticVehicle(482,1361.7383,-1651.2385,13.5060,270.4100,71,71); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vyjel jste s vozidlem"); } } else { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Burrito nevlastníš"); } if (!sscanf(line, "s[25]d", player, model)) { if (!strcmp(player, PlayerName(playerid), true)) { AddStaticVehicle(560,1361.7383,-1651.2385,13.5060,270.4100,71,71); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vyjel jste s vozidlem"); } } else { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Sultan nevlastníš"); } if (!sscanf(line, "s[25]d", player, model)) { if (!strcmp(player, PlayerName(playerid), true)) { AddStaticVehicle(576,1361.7383,-1651.2385,13.5060,270.4100,71,71); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vyjel jste s vozidlem"); } } else { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Tornado nevlastníš"); } } } return 1; } Soubor cars.txt BananaJoe 576 Zapisovaní do cars.txt public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_CARS) { if(response) { switch(listitem) { case 0: { new pname[MAX_PLAYER_NAME], File:handle = fopen("cars.txt" , io_write); if(handle) { GetPlayerName(playerid, pname, 24); fwrite(handle, pname); fwrite(handle, " 482"); fclose(handle); } SendClientMessage(playerid,COLOR_LIGHTBLUE,"Zakoupil jsi vozidlo"); GivePlayerMoney(playerid, -10000); } case 1: { new pname[MAX_PLAYER_NAME], File:handle = fopen("cars.txt", io_write); if(handle) { GetPlayerName(playerid, pname, 24); fwrite(handle, pname); fwrite(handle, " 560"); fclose(handle); } SendClientMessage(playerid,COLOR_LIGHTBLUE,"Zakoupil jsi vozidlo"); GivePlayerMoney(playerid, -42000);GivePlayerMoney(playerid, -10000); } case 2: { new pname[MAX_PLAYER_NAME], File:handle = fopen("cars.txt", io_write); if(handle) { GetPlayerName(playerid, pname, 24); fwrite(handle, pname); fwrite(handle, " 576"); fclose(handle); } SendClientMessage(playerid,COLOR_LIGHTBLUE,"Zakoupil jsi vozidlo"); GivePlayerMoney(playerid, -18000); } } } }
  9. TransFender dílna Je to můj první projekt, doufám že se bude alespoň trochu líbit, nachází se v Los Santos. Dílna je určena pro frakci mechaniků. Fotografie: https://ctrlv.cz/0G76 https://ctrlv.cz/kFG7 https://ctrlv.cz/cQr5 https://ctrlv.cz/iHnp https://ctrlv.cz/g2bd https://ctrlv.cz/NNCJ Obsahuje: Interiér pro TransFender, zakrytý vchod vedlejší garáže, kancelář pro šéfa, viz. screenshoty. Kód: CreateObject(19447, 1032.46167, -1034.31824, 32.40000, 0.00000, 0.00000, 0.00000); CreateObject(19447, 1057.00000, -1034.35022, 32.40000, 0.00000, 0.00000, 0.00000); CreateObject(19447, 1056.98120, -1024.72009, 32.40000, 0.00000, 0.00000, 0.00000); CreateObject(19377, 1048.20288, -1034.31238, 31.03280, 0.00000, 90.00000, 0.00000); CreateObject(13645, 1043.37732, -1041.02856, 30.35290, 0.00000, 0.00000, -1.60000); CreateObject(13645, 1045.97766, -1041.05701, 30.35290, 0.00000, 0.00000, -2.50000); CreateObject(19447, 1037.23047, -1039.06897, 32.40000, 0.00000, 0.00000, 90.00000); CreateObject(19447, 1052.26465, -1039.06628, 32.40000, 0.00000, 0.00000, 90.00000); CreateObject(19447, 1032.46167, -1034.31824, 35.90000, 0.00000, 0.00000, 0.00000); CreateObject(19447, 1057.00000, -1034.33020, 35.90000, 0.00000, 0.00000, 0.00000); CreateObject(19447, 1057.00000, -1024.71326, 35.90000, 0.00000, 0.00000, 0.00000); CreateObject(19447, 1042.96362, -1039.06763, 35.90000, 0.00000, 0.00000, 90.00000); CreateObject(19447, 1037.24341, -1039.07764, 35.90000, 0.00000, 0.00000, 90.00000); CreateObject(19447, 1052.25916, -1039.08545, 35.90000, 0.00000, 0.00000, 90.00000); CreateObject(19952, 1030.45410, -1036.79590, 30.54160, 0.00000, 0.00000, -90.00000); CreateObject(19951, 1059.08899, -1035.90137, 30.90070, 0.00000, 0.00000, 90.00000); CreateObject(1422, 1061.37378, -1035.61450, 31.17580, 0.00000, 0.00000, 45.00000); CreateObject(1422, 1058.54297, -1037.95837, 31.17580, 0.00000, 0.00000, 33.00000); CreateObject(1422, 1027.24719, -1035.96814, 30.78290, 0.00000, 0.00000, -41.00000); CreateObject(1422, 1030.01135, -1038.04163, 30.78290, 0.00000, 0.00000, -25.00000); CreateObject(19817, 1045.48694, -1030.75476, 30.74890, 0.00000, 0.00000, 0.00000); CreateObject(1438, 1034.15930, -1031.28162, 31.08220, 0.00000, 0.00000, 84.00000); CreateObject(19903, 1048.02625, -1027.17517, 31.10890, 0.00000, 0.00000, -113.00000); CreateObject(1370, 1034.79187, -1028.72156, 31.65000, 0.00000, 0.00000, 98.00000); CreateObject(2139, 1056.39465, -1026.55566, 31.10930, 0.00000, 0.00000, -90.00000); CreateObject(2961, 1038.17310, -1026.08105, 32.50000, 0.00000, 0.00000, 0.00000); CreateObject(19273, 1048.44446, -1039.01453, 32.35770, 4.00000, 0.00000, 180.00000); CreateObject(1141, 1045.35815, -1028.70117, 31.11030, -91.00000, 0.00000, 105.00000); CreateObject(19448, 1048.51636, -1027.77612, 36.21860, 0.00000, 90.00000, 90.00000); CreateObject(19448, 1038.89990, -1027.77539, 36.21860, 0.00000, 90.00000, 90.00000); CreateObject(19448, 1037.36694, -1024.28967, 36.19860, 0.00000, 90.00000, 90.00000); CreateObject(14409, 1054.97644, -1029.93542, 33.04000, 0.00000, 0.00000, 180.00000); CreateObject(19377, 1051.80005, -1034.31238, 31.02280, 0.00000, 90.00000, 0.00000); CreateObject(19377, 1037.75256, -1024.70483, 31.02280, 0.00000, 90.00000, 0.00000); CreateObject(19377, 1048.20288, -1024.69275, 31.03280, 0.00000, 90.00000, 0.00000); CreateObject(19377, 1058.71082, -1024.70593, 31.02280, 0.00000, 90.00000, 0.00000); CreateObject(19447, 1032.46167, -1024.69556, 35.90000, 0.00000, 0.00000, 0.00000); CreateObject(19391, 1053.26306, -1027.23462, 38.02000, 0.00000, 0.00000, 0.00000); CreateObject(3850, 1051.53467, -1029.41077, 36.83590, 0.00000, 0.00000, 90.00000); CreateObject(3850, 1048.08630, -1029.41077, 36.83590, 0.00000, 0.00000, 90.00000); CreateObject(3850, 1044.66272, -1029.41077, 36.83590, 0.00000, 0.00000, 90.00000); CreateObject(3850, 1041.23816, -1029.41077, 36.83590, 0.00000, 0.00000, 90.00000); CreateObject(3850, 1037.80896, -1029.41077, 36.83590, 0.00000, 0.00000, 90.00000); CreateObject(3850, 1034.38757, -1029.41077, 36.83590, 0.00000, 0.00000, 90.00000); CreateObject(19448, 1037.28235, -1027.77612, 36.20860, 0.00000, 90.00000, 90.00000); CreateObject(19448, 1038.87988, -1024.28967, 36.20860, 0.00000, 90.00000, 90.00000); CreateObject(2139, 1056.39465, -1027.49573, 31.10930, 0.00000, 0.00000, -90.00000); CreateObject(2139, 1056.39465, -1028.43433, 31.10930, 0.00000, 0.00000, -90.00000); CreateObject(2139, 1056.39465, -1029.39502, 31.10930, 0.00000, 0.00000, -90.00000); CreateObject(19921, 1056.29919, -1027.08032, 32.25850, 0.00000, 0.00000, -62.00000); CreateObject(19815, 1056.90015, -1027.95166, 32.97160, 0.00000, 0.00000, -90.00000); CreateObject(19899, 1035.88806, -1024.66199, 31.10870, 0.00000, 0.00000, -90.00000); CreateObject(19377, 1037.75256, -1034.32996, 31.02280, 0.00000, 90.00000, 0.00000); CreateObject(19900, 1048.40881, -1029.86292, 31.11000, 0.00000, 0.00000, 24.00000); CreateObject(19900, 1054.29980, -1032.11365, 31.11000, 0.00000, 0.00000, -69.00000); CreateObject(19900, 1054.08057, -1033.02344, 31.11000, 0.00000, 0.00000, -43.00000); CreateObject(19899, 1052.38928, -1026.56421, 31.12030, 0.00000, 0.00000, -90.00000); CreateObject(2047, 1038.76855, -1038.90503, 36.00000, 0.00000, 0.00000, 0.00000); CreateObject(1502, 1053.26575, -1026.44104, 36.25660, 0.00000, 0.00000, -90.00000); CreateObject(1502, 1037.51050, -1026.11304, 36.28650, 0.00000, 0.00000, 180.00000); CreateObject(19391, 1036.73706, -1026.10071, 38.02000, 0.00000, 0.00000, 90.00000); CreateObject(19362, 1034.01685, -1026.11072, 38.02000, 0.00000, 0.00000, 90.00000); CreateObject(19447, 1032.46167, -1024.69556, 39.40000, 180.00000, 0.00000, 0.00000); CreateObject(19447, 1032.46167, -1034.31824, 39.40000, 180.00000, 0.00000, 0.00000); CreateObject(19447, 1037.24341, -1039.07764, 39.40000, 180.00000, 0.00000, 90.00000); CreateObject(19447, 1042.96362, -1039.06763, 39.40000, 0.00000, 180.00000, 90.00000); CreateObject(19447, 1052.25916, -1039.08545, 39.40000, 180.00000, 0.00000, 90.00000); CreateObject(19447, 1057.00000, -1034.33020, 39.40000, 180.00000, 0.00000, 0.00000); CreateObject(19447, 1056.96802, -1024.73730, 39.40000, 180.00000, 0.00000, 0.00000); CreateObject(1098, 1056.00000, -1038.90002, 34.00000, 0.00000, 0.00000, 90.00000); CreateObject(1098, 1054.00000, -1038.88086, 34.00000, 0.00000, 0.00000, 90.00000); CreateObject(1098, 1052.00000, -1038.88086, 34.00000, 0.00000, 0.00000, 90.00000); CreateObject(1098, 1054.00000, -1038.88086, 34.00000, 0.00000, 0.00000, 90.00000); CreateObject(1098, 1050.00000, -1038.88086, 34.00000, 0.00000, 0.00000, 90.00000); CreateObject(1370, 1054.93530, -1031.54053, 31.65000, 0.00000, 0.00000, 98.00000); CreateObject(11729, 1048.87415, -1026.38965, 36.30610, 0.00000, 0.00000, 10.00000); CreateObject(11729, 1050.18286, -1026.38733, 36.30607, 0.00000, 0.00000, 0.00000); CreateObject(18641, 1037.77490, -1028.35706, 31.13960, 0.00000, 97.00000, 171.00000); CreateObject(1544, 1035.92749, -1024.66907, 32.36193, 0.00000, 0.00000, 0.00000); CreateObject(1544, 1056.67310, -1029.51440, 32.16932, 0.00000, 0.00000, 0.00000); CreateObject(19627, 1056.43030, -1028.24585, 32.16920, 0.00000, 0.00000, 26.00000); CreateObject(19627, 1056.64392, -1028.38770, 32.16920, 0.00000, 0.00000, 50.00000); CreateObject(19627, 1037.31409, -1029.28723, 31.11050, 0.00000, 0.00000, -40.00000); CreateObject(19627, 1045.80652, -1028.56006, 32.66940, 0.00000, 0.00000, 40.00000); CreateObject(19627, 1036.25537, -1024.59583, 32.36250, 0.00000, 0.00000, -55.00000); CreateObject(18633, 1035.98889, -1032.80481, 31.11100, 0.00000, 98.00000, 40.00000); CreateObject(18633, 1037.49780, -1027.56018, 31.11100, 0.00000, 98.00000, 135.00000); CreateObject(18633, 1053.15857, -1032.04858, 31.11100, 0.00000, 98.00000, 135.00000); CreateObject(2737, 1039.67358, -1038.88647, 32.68240, 0.00000, 0.00000, 180.00000); CreateObject(1328, 1053.91528, -1038.61182, 31.70000, 0.00000, 0.00000, 0.00000); CreateObject(19362, 1035.82654, -1024.48401, 38.02000, 0.00000, 0.00000, 0.00000); CreateObject(19362, 1034.30933, -1022.95459, 38.02000, 0.00000, 0.00000, 90.00000); CreateObject(19362, 1037.73352, -1024.48401, 38.02000, 0.00000, 0.00000, 0.00000); CreateObject(19362, 1037.73352, -1021.30957, 38.02000, 0.00000, 0.00000, 0.00000); CreateObject(19362, 1032.76172, -1021.30957, 38.02000, 0.00000, 0.00000, 0.00000); CreateObject(19362, 1032.76172, -1018.15552, 38.02000, 0.00000, 0.00000, 0.00000); CreateObject(19362, 1037.73352, -1018.15552, 38.02000, 0.00000, 0.00000, 0.00000); CreateObject(19362, 1034.28967, -1016.65442, 38.02000, 0.00000, 0.00000, 90.00000); CreateObject(19362, 1037.49304, -1016.65442, 38.02000, 0.00000, 0.00000, 90.00000); CreateObject(19448, 1036.60742, -1020.80243, 36.20860, 0.00000, 90.00000, 90.00000); CreateObject(19448, 1036.44482, -1017.31519, 36.20860, 0.00000, 90.00000, 90.00000); CreateObject(19459, 1034.27173, -1034.23584, 39.85900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1037.32373, -1034.14111, 39.84900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1040.54114, -1034.23303, 39.83900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1043.75391, -1034.20789, 39.82900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1046.97485, -1034.17615, 39.81900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1050.17139, -1034.29614, 39.80900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1053.39197, -1034.22656, 39.79900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1055.30078, -1034.30762, 39.78900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1034.28308, -1024.63745, 39.85900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1037.10974, -1024.53723, 39.84900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1039.87695, -1024.61169, 39.83900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1043.05383, -1024.61902, 39.82900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1046.15515, -1024.60144, 39.81900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1033.37183, -1018.19855, 39.85900, 0.00000, 90.00000, 90.00000); CreateObject(19459, 1048.95374, -1024.67981, 39.80900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1052.15027, -1024.70728, 39.79900, 0.00000, 90.00000, 0.00000); CreateObject(19459, 1055.30664, -1024.66418, 39.78900, 0.00000, 90.00000, 0.00000); CreateObject(14438, 1044.83203, -1033.77441, 39.71927, 0.00000, 0.00000, 0.00000); CreateObject(17951, 1044.74536, -1038.98499, 35.90000, 0.00000, 0.00000, 90.00000); CreateObject(939, 1033.64966, -1036.39197, 33.50000, 0.00000, 0.00000, 90.00000); CreateObject(2206, 1036.12500, -1018.14172, 36.29650, 0.00000, 0.00000, 180.00000); CreateObject(1671, 1035.19348, -1017.34619, 36.80000, 0.00000, 0.00000, 0.00000); CreateObject(19893, 1034.65222, -1018.27087, 37.23190, 0.00000, 0.00000, 156.00000); CreateObject(19808, 1035.51392, -1017.95264, 37.23180, 0.00000, 0.00000, 168.00000); CreateObject(2190, 1036.06531, -1018.45673, 37.23190, 0.00000, 0.00000, 207.00000); CreateObject(2115, 1033.37170, -1022.34552, 36.29682, 0.00000, 0.00000, 0.00000); CreateObject(19173, 1032.85156, -1020.18127, 38.37330, 0.00000, 0.00000, 90.00000); CreateObject(2000, 1037.18689, -1019.70422, 36.29660, 0.00000, 0.00000, 207.00000); CreateObject(2069, 1033.11609, -1017.03101, 36.33670, 0.00000, 0.00000, 0.00000); CreateObject(1734, 1035.16321, -1019.89178, 39.75929, 0.00000, 0.00000, 0.00000); CreateObject(19357, 1024.03369, -1029.42871, 33.00000, 0.00000, 0.00000, 90.00000); CreateObject(19357, 1027.22412, -1029.42798, 33.00000, 0.00000, 0.00000, 90.00000); CreateObject(2614, 1036.94153, -1038.94055, 35.46450, 0.00000, 0.00000, 180.00000); CreateObject(2048, 1041.30896, -1026.09216, 34.98825, 0.00000, 0.00000, 0.00000);
  10. Děkuji za vysvětlení, opravil jsem to ale furt mám ten problém že v obsahu mám (BananaJoe 576) ale jakmile dam /garaz2 tak se mi spawnou vsechny 3 vozidla, ikdyž se mělo spawnout pouze to s id 576.
  11. A to způsobuje to že se mi místo jednoho vozidla spawnou všechna?
  12. Tak teď doufám že poslední rada ale když mam v tom cars.txt (BananaJoe 560), tak se mi nespawne vozidlo s id 560 ale všechny, ale pokud ve cars.txt neni nic tak se nic nespawne CMD:garaz2(playerid, params[]) { new File:handle = fopen("cars.txt", io_read); new line[128]; new player[25]; if(handle) { while (fread(handle, line, sizeof(line))) { if (!sscanf(line, "s[25]d", player, 482)) { if (!strcmp(player, PlayerName(playerid), true)) { AddStaticVehicle(482,1361.7383,-1651.2385,13.5060,270.4100,71,71); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vyjel jste s vozidlem"); } } else { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Burrito nevlastníš"); } if (!sscanf(line, "s[25]d", player, 560)) { if (!strcmp(player, PlayerName(playerid), true)) { AddStaticVehicle(560,1361.7383,-1651.2385,13.5060,270.4100,71,71); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vyjel jste s vozidlem"); } } else { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Sultan nevlastníš"); } if (!sscanf(line, "s[25]d", player, 576)) { if (!strcmp(player, PlayerName(playerid), true)) { AddStaticVehicle(576,1361.7383,-1651.2385,13.5060,270.4100,71,71); SendClientMessage(playerid,COLOR_LIGHTBLUE,"Vyjel jste s vozidlem"); } } else { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Tornado nevlastníš"); } } } return 1; }
×
×
  • Create New...