Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Üzenetek - filip95
Oldalak: 1 [2] 3 4 ... 10
16
« Dátum: 2013. október 29. - 10:55:20 »
Én kajakra hülyevagyok :D erre nem is gondoltam :facepalm: Köszi szépen :thumbsup:
17
« Dátum: 2013. október 29. - 08:58:40 »
Na várjunk.. Értem mirõl beszélsz eddig oké de ha pl a ongamemodeint-nél van vagy 600db CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay); Azoknál hogy 0-ázzam le? Azokhoz már nincs odahívva a GetVehicleParamsEx A Parancsba ugye meg nem írhatom át mert akkor mindíg 0-a lessz, és mindíg ki akarja kapcsolni.. hogyan tovább?
18
« Dátum: 2013. október 28. - 15:29:21 »
Sziasztok, ne haragudjatok lehet én vagyok hülye de már kerestem itt fórumon is google-ba mindenhol nem találtam megoldást a következõ problémára: Itt egy kód: CMD:motor( playerid, params [ ] ) { #pragma unused params if (IsPlayerInAnyVehicle(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehicle = GetPlayerVehicleID(playerid); new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective); if(engine == 0) { SetVehicleParamsEx(vehicle,1,lights,alarm,doors,bonnet,boot,objective); } else { SetVehicleParamsEx(vehicle,0,lights,alarm,doors,bonnet,boot,objective); } } } return 1; }
A Parancs mûködik meg minden csak van vele egy kis bibi. Mikor beszállok az autóba és beírom hogy /motor akkor nemcsinál semmit, ha beírom még1x beindítja ha még1x leállítja. Szóval utána már jó mindíg, csak meg kellene oldani hogy ne keljen 2x beírni elõre is köszi mindenki
19
« Dátum: 2013. október 28. - 12:08:42 »
Köszönöm mindenkinek
20
« Dátum: 2013. október 28. - 12:06:08 »
Értem köszi mindenki, és ha én ezt a módot leszedem csak nekem látszik ugye? Szóval nem látszik mindenkinek..?!?!
22
« Dátum: 2013. október 27. - 17:34:41 »
Már megoldva Nem a pluginok voltak, az összes plugin friss vot..
23
« Dátum: 2013. október 27. - 14:15:57 »
Megemlítelek benne Sõt jöhetsz adminnak, segítõnek Ha nem egyezel bele lessz egy söröm :DD Dupla hozzászólás automatikusan összefûzve. ( 2013. október 27. - 16:30:20 )
Sokat nem de kiszedtem belõle 1-2 dolgot ami nem kellett oda, de még mindíg runtime error 19 nativecheck-el aztírta nincs regisztrálva: funcname Dupla hozzászólás automatikusan összefûzve. ( 2013. október 27. - 16:30:52 )
//=========================================================================INCLUDEK #include #include #include #include #include //=========================================================================DIALOGOK #define DIALOG_REGISTER 8 #define DIALOG_LOGIN 9 //=========================================================================SZÖVEGEK/PARANCSOK #define napuzenete \"{00FF00}MOTD: {00FFD5}\" #define nemvagyadmin SendClientMessage(playerid, COLOR_SEMMI, \"{FF0000}[Hiba] {FF8040}A rangod túl alacsony a parancs használatához!\"); //=========================================================================SZERVER BEÁLLÍTÁSOK new hosztnev[100] = \"[HUN] RPG Teszt szerver\"; new modnev[20] = \"RPG\"; new modverzio[10] = \"1.0.2\"; new mapneve[20] = \"Egyéni\"; new mapverzio[5] = \"1.0\"; //=========================================================================ENUM-OK enum pInfo { Jelszo, Admin, Pont, Penz, Deaths, Kills, Kickek, Warn, Bann, Bannoka }; //=========================================================================GLOBÁLIS VÁLTOZÓK new PlayerInfo[MAX_PLAYERS][pInfo]; new IsLogged[MAX_PLAYERS]; new IsInDM[MAX_PLAYERS]; //=========================================================================FORWARDOK forward NewKick(playerid); forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5); //=========================================================================PRAGMA #pragma unused ret_memcpy //=========================================================================SZINEK #define COLOR_TURKTIZ 0x40E0D0FF #define COLOR_FEHER 0xFFFFFFAA #define COLOR_SEMMI 0xAFAFAFAA #define COLOR_INFO 0xFFFFE1FF #define COLOR_GRAD1 0xB4B5B7FF #define COLOR_GRAD2 0xBFC0C2FF #define COLOR_GRAD3 0xCBCCCEFF #define COLOR_GRAD4 0xD8D8D8FF #define COLOR_GRAD5 0xE3E3E3FF #define COLOR_GRAD6 0xF0F0F0FF #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_FADE1 0xE6E6E6E6 #define COLOR_FADE2 0xC8C8C8C8 #define COLOR_FADE3 0xAAAAAAAA #define COLOR_FADE4 0x8C8C8C8C #define COLOR_FADE5 0x6E6E6E6E #define COLOR_PURPLE 0xC2A2DAAA #define COLOR_DARKBLUE 0x2641FEAA #define COLOR_ALLDEPT 0xFF8282AA //==================================================================================================== //==================================================================================================== main() { print(\"\\nA Szerver sikeresen elindult.\"); } public OnGameModeInit() { new gmtext[50], szervernev[50], mapnev[50]; format(gmtext,sizeof(gmtext), \"[ %s | %s ]\", modnev, modverzio); format(szervernev,sizeof(szervernev),\"hostname %s\",hosztnev); format(mapnev,sizeof(mapnev),\"mapname %s [v%s]\",mapneve, mapverzio); SetGameModeText(gmtext); SendRconCommand(szervernev); SendRconCommand(mapnev); //JÁRMÛVEK AddStaticVehicle(522,2132.5444,-2412.6985,13.1213,179.2344,3,1); // nrg1-lsair AddStaticVehicle(522,2130.7659,-2412.4524,13.1076,173.2770,4,2); // nrg2-lsair AddStaticVehicle(522,2128.9338,-2412.9070,13.1039,176.4026,5,3); // nrg3-lsair //SKINEK AddPlayerClass(0,2112.0190, 2112.0190, -2411.8156, 13.5468,0,0,0,0,0,0); AddPlayerClass(217,2112.0190, 2112.0190, -2411.8156, 13.5468,0,0,0,0,0,0); //map CreateObject(1634, 1920.390991, -2427.586426, 13.836435, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1920.326294, -2421.297852, 17.654724, 12.0321, 0.0000, 0.0000); CreateObject(6066, 1920.274170, -2415.929932, 19.564552, 0.0000, 0.0000, 270.7224); CreateObject(4005, 1928.986816, -2376.640625, 25.546968, 0.0000, 0.0000, 0.0000); CreateObject(1503, 2026.420166, -2405.819824, 12.940992, 0.0000, 0.0000, 358.2811); CreateObject(1503, 2026.424683, -2404.477051, 13.961729, 24.9237, 0.0000, 358.2811); CreateObject(1683, 1954.768311, -2450.569824, 18.441742, 0.0000, 0.0000, 268.0403); CreateObject(1655, 1946.016357, -2464.215332, 13.839231, 0.0000, 8.5944, 335.9358); CreateObject(1655, 1951.194214, -2455.821777, 20.999887, 24.9237, 13.7510, 324.7631); CreateObject(1655, 1958.068604, -2465.203613, 13.839228, 0.0000, 0.0000, 21.4859); CreateObject(1655, 1948.312500, -2459.798096, 16.615503, 12.8916, 9.4538, 335.9358); CreateObject(1655, 1955.823975, -2460.617920, 17.051891, 24.0642, 349.6868, 22.3454); CreateObject(4006, 1975.938477, -2418.286865, 32.324207, 0.0000, 0.0000, 0.0000); CreateObject(1655, 1942.301025, -2471.041748, 10.789251, 0.0000, 8.5944, 333.3575); CreateObject(8040, 1826.726685, -2809.450684, 220.143463, 0.0000, 0.0000, 90.2409); CreateObject(18450, 1825.871460, -2734.409668, 200.630020, 0.0000, 27.5020, 91.1003); CreateObject(18450, 1824.503418, -2669.060059, 155.884811, 0.0000, 41.2530, 91.1003); CreateObject(18450, 1823.612549, -2633.634277, 128.272079, 0.0000, 24.9237, 91.9597); CreateObject(18450, 1823.907959, -2638.795898, 129.446213, 0.0000, 13.7510, 91.9597); CreateObject(18450, 1822.481445, -2596.012451, 123.221230, 0.0000, 3.4377, 91.9597); CreateObject(18450, 1821.863037, -2579.108398, 127.438377, 0.0000, 353.9839, 91.9597); CreateObject(18450, 1822.009399, -2585.995361, 129.466614, 0.0000, 345.3896, 91.9597); CreateObject(18450, 1821.683838, -2564.373779, 138.656708, 358.2811, 337.6546, 90.2408); CreateObject(18450, 1821.669922, -2570.275146, 140.694382, 0.8594, 328.2008, 91.9597); CreateObject(18450, 1821.689941, -2569.199951, 142.603256, 359.1406, 311.0122, 89.3814); CreateObject(1894, 1833.963989, -2466.290039, 15.767323, 0.0000, 0.0000, 185.6385); CreateObject(3363, 1932.003296, -2434.515381, 12.574472, 0.0000, 0.0000, 140.9476); CreateObject(5390, 1845.096680, -2450.564453, 19.368885, 0.0000, 0.0000, 0.0000); CreateObject(8172, 1844.507202, -2519.420410, 13.364076, 0.0000, 353.1245, 90.2409); CreateObject(4028, 1752.788696, -2465.150391, 21.387001, 0.0000, 0.0000, 91.9597); CreateObject(5005, 1839.068970, -2401.449951, 16.106205, 0.0000, 0.0000, 0.0000); CreateObject(5005, 1901.793457, -2422.385498, 16.090637, 0.0000, 0.0000, 90.2408); CreateObject(5005, 1901.677002, -2422.839355, 21.623993, 0.0000, 0.0000, 90.2408); CreateObject(7371, 1788.500000, -2400.556152, 12.554509, 0.0000, 0.0000, 0.0000); CreateObject(1309, 1832.093994, -2402.138672, 21.165392, 0.0000, 0.0000, 89.3814); CreateObject(1267, 1789.120850, -2498.049805, 29.797539, 0.0000, 0.0000, 134.9317); CreateObject(1260, 1901.640259, -2475.289307, 28.965591, 0.0000, 0.0000, 0.0000); CreateObject(5400, 1836.352539, -2419.695313, 21.123297, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1655.867432, -2552.855225, 15.047325, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1655.997803, -2541.829346, 15.047325, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1655.812500, -2533.862305, 15.047325, 0.0000, 0.0000, 0.0000); CreateObject(4019, 1541.792114, -2619.187500, 15.055195, 0.0000, 0.0000, 0.0000); CreateObject(4023, 1534.224854, -2568.151611, 24.412941, 0.0000, 0.0000, 0.0000); CreateObject(4023, 1575.277588, -2568.229492, 9.512943, 0.0000, 0.0000, 0.0000); CreateObject(1633, 1559.595581, -2577.342041, 21.485107, 0.0000, 0.0000, 179.6224); CreateObject(1633, 1559.603516, -2581.189453, 24.426580, 26.6425, 0.0000, 179.6224); CreateObject(1633, 1559.511841, -2583.802979, 28.222662, 53.2850, 0.0000, 179.6224); CreateObject(1633, 1559.416382, -2584.740479, 32.811241, 76.4898, 0.0000, 179.6224); CreateObject(1634, 1609.892090, -2568.534912, 13.844193, 0.0000, 0.0000, 90.2409); CreateObject(1633, 1520.137451, -2579.636963, 36.385109, 0.0000, 0.0000, 88.5220); CreateObject(1633, 1516.782471, -2579.482178, 39.330536, 30.0803, 359.1406, 88.5220); CreateObject(1633, 1514.380005, -2579.555664, 44.296776, 53.2850, 359.1406, 88.5220); CreateObject(1633, 1512.969604, -2579.670166, 51.068199, 70.4738, 359.1406, 89.3814); CreateObject(18367, 1548.095337, -2641.532227, 54.123940, 356.5623, 0.0000, 0.0000); CreateObject(18367, 1548.372681, -2671.024902, 59.205868, 356.5623, 353.9839, 321.3253); CreateObject(18367, 1530.246460, -2693.976074, 64.307991, 356.5623, 353.9839, 281.7913); CreateObject(18367, 1500.957397, -2699.993408, 69.493767, 356.5623, 346.2490, 232.8034); CreateObject(18367, 1477.399536, -2681.144043, 74.673050, 356.5623, 346.2490, 193.2690); CreateObject(18367, 1471.319824, -2652.048340, 79.806084, 356.5623, 346.2490, 142.5619); CreateObject(18367, 1490.048462, -2628.610352, 84.903709, 356.5623, 346.2490, 110.7628); CreateObject(18262, 1523.864868, -2617.164795, 91.480965, 0.0000, 346.2490, 104.8513); CreateObject(3458, 1727.391113, -2496.096191, 31.073299, 0.0000, 0.0000, 0.0000); CreateObject(3458, 1710.434692, -2495.985840, 34.123299, 0.0000, 19.7670, 0.0000); CreateObject(3458, 1689.362549, -2495.895020, 45.004475, 0.0000, 38.6747, 0.0000); CreateObject(1632, 1674.129883, -2495.850586, 59.474987, 30.0803, 359.1406, 90.2409); CreateObject(1632, 1672.238647, -2496.143555, 64.528412, 61.0199, 359.1406, 90.2409); CreateObject(1632, 1673.633667, -2496.099121, 70.117401, 108.2889, 359.1406, 90.2409); CreateObject(3458, 1700.715088, -2496.065186, 64.358444, 0.0000, 0.0000, 0.0000); CreateObject(1632, 1725.296387, -2495.369141, 67.187027, 2.5783, 359.1406, 275.8791); CreateObject(6066, 1731.201904, -2494.640625, 68.295700, 0.0000, 0.0000, 183.9196); CreateObject(3458, 1973.908447, -2557.640869, 12.443415, 25.7831, 348.8273, 26.6425); CreateObject(3458, 2007.258667, -2549.244873, 18.509577, 25.7831, 348.8273, 12.8916); CreateObject(3458, 2042.062378, -2548.293213, 24.814699, 25.7831, 348.8273, 359.1406); CreateObject(3458, 2046.394653, -2558.371826, 25.201902, 20.6265, 9.4538, 194.9878); CreateObject(3458, 2009.552490, -2567.658203, 19.480406, 20.6265, 9.4538, 186.3934); CreateObject(3458, 1981.978394, -2570.252441, 14.293402, 17.1887, 13.7510, 173.5018); CreateObject(5126, 2127.024414, -2447.415283, 27.496220, 0.0000, 0.0000, 180.4820); CreateObject(1634, 1880.584473, -2543.116699, 18.956671, 30.0803, 0.8594, 270.6186); CreateObject(1634, 1887.837524, -2543.281250, 18.824345, 30.0803, 0.8594, 88.5220); CreateObject(1634, 1461.820557, -2615.539795, 13.594196, 0.0000, 0.0000, 181.3413); CreateObject(1634, 1461.740845, -2619.289063, 16.922709, 25.7831, 0.0000, 181.3413); CreateObject(1634, 1461.788818, -2621.751953, 21.706373, 46.4095, 0.0000, 181.3413); CreateObject(1634, 1461.629395, -2621.891602, 26.562145, 72.1926, 0.0000, 181.3413); CreateObject(1634, 1461.953491, -2620.154297, 31.411814, 97.9757, 0.0000, 181.3413); CreateObject(1634, 1461.818604, -2615.843994, 35.379841, 132.3533, 0.0000, 181.3413); CreateObject(1634, 1461.868896, -2609.607178, 36.324261, 162.4338, 0.0000, 181.3413); CreateObject(1634, 1461.827637, -2603.462402, 34.112877, 190.7954, 0.0000, 181.3413); CreateObject(1634, 1461.693237, -2598.902588, 29.799738, 202.8276, 0.0000, 181.3413); CreateObject(1634, 1461.698242, -2595.439209, 24.717325, 226.8920, 0.0000, 181.3413); CreateObject(1634, 1461.699585, -2594.889648, 18.764059, 258.6908, 0.0000, 181.3413); CreateObject(1634, 1461.888428, -2597.487793, 14.394184, 292.2086, 0.0000, 181.3413); CreateObject(1634, 1903.522339, -2615.810303, 13.844193, 0.0000, 0.0000, 177.9037); CreateObject(6066, 1903.574585, -2621.585938, 15.047325, 0.0000, 0.0000, 86.8030); CreateObject(1634, 1865.415649, -2662.941406, 23.107872, 0.0000, 0.0000, 89.3814); CreateObject(1634, 1844.767822, -2663.392578, 23.738880, 0.0000, 0.0000, 270.7226); CreateObject(1634, 1800.862305, -2661.185059, 24.184978, 0.0000, 0.0000, 89.3814); CreateObject(1634, 1732.223633, -2661.293213, 23.985216, 0.0000, 0.0000, 89.3814); CreateObject(1634, 1661.628418, -2661.717773, 24.437004, 0.0000, 0.0000, 89.3814); CreateObject(1634, 1637.486816, -2661.088867, 24.385891, 0.0000, 0.0000, 269.8628); CreateObject(1634, 1702.829346, -2663.180908, 24.494364, 0.0000, 0.0000, 269.8628); CreateObject(1634, 1772.961792, -2660.661133, 25.021872, 0.0000, 0.0000, 269.8628); CreateObject(3363, 1520.412720, -2557.922852, 35.120171, 0.0000, 0.0000, 242.3613); CreateObject(18450, 2126.020996, -2541.682373, 14.790071, 30.9397, 0.0000, 274.0563); CreateObject(18450, 2090.552490, -2509.975586, 15.107306, 30.9397, 0.0000, 4.2972); CreateObject(18450, 2094.026855, -2581.428223, 15.115066, 30.9397, 0.0000, 189.9357); CreateObject(18450, 2057.927490, -2554.704590, 15.115066, 30.9397, 0.0000, 95.3977); CreateObject(18450, 2131.650635, -2540.371338, 24.431986, 89.3814, 0.0000, 274.0563); CreateObject(18450, 2095.658447, -2587.454590, 24.321051, 89.3814, 0.0000, 189.8314); CreateObject(18450, 2089.583740, -2504.345947, 24.322136, 89.3814, 0.0000, 4.2972); CreateObject(13592, 1950.670410, -2586.655029, 22.417496, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1948.919556, -2594.267578, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1947.800537, -2602.131348, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1946.740479, -2610.051758, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1945.556519, -2617.891602, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1944.525391, -2625.822021, 24.117485, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1943.154541, -2633.378906, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1942.024536, -2640.750488, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1938.251221, -2644.635986, 16.133209, 3.4377, 0.8594, 88.5220); CreateObject(13592, 1592.767944, -2623.800293, 20.292509, 273.1970, 347.9679, 359.1406); CreateObject(13592, 1591.693726, -2624.496582, 28.100872, 273.1970, 347.9679, 359.1406); CreateObject(13592, 1590.561157, -2625.343262, 35.802467, 273.1970, 347.9679, 359.1406); CreateObject(13592, 1588.995361, -2626.142578, 43.268219, 271.4781, 350.5462, 359.1406); CreateObject(13592, 1587.843140, -2626.067627, 51.207684, 271.4781, 350.5462, 359.1406); CreateObject(13592, 1587.025757, -2625.708984, 58.884254, 271.4781, 350.5462, 359.1406); CreateObject(1655, 1601.265381, -2632.176514, 12.747004, 0.0000, 16.3293, 110.8673); CreateObject(1634, 1603.566772, -2648.630371, 25.964636, 0.0000, 0.0000, 89.3814); CreateObject(6066, 1597.544067, -2648.827881, 27.470863, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1505.513672, -2420.676270, 13.852005, 0.0000, 0.0000, 288.6668); CreateObject(1503, 1508.089478, -2419.850830, 16.363384, 30.0803, 0.0000, 286.9479); CreateObject(6066, 1378.466431, -2586.717773, 16.247307, 0.0000, 0.0000, 0.0000); CreateObject(18450, 1706.511597, -2420.607666, 24.077515, 0.0000, 354.8434, 336.7952); CreateObject(18450, 1633.327881, -2412.746582, 21.547874, 0.0000, 0.0000, 0.0000); CreateObject(18450, 1570.398193, -2412.628174, 21.375675, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1580.460327, -2428.954102, 14.880140, 0.0000, 0.0000, 268.0403); CreateObject(4141, 1399.413574, -2434.576416, 23.604845, 0.0000, 0.0000, 89.3814); CreateObject(14675, 1397.213135, -2436.551514, 23.558849, 0.0000, 0.0000, 89.3814); CreateObject(1894, 1424.915405, -2479.907959, 12.554691, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1440.645020, -2473.286133, 11.655146, 0.0000, 0.0000, 139.2289); CreateObject(6066, 1378.655396, -2487.853027, 16.105122, 0.0000, 0.0000, 359.2444); CreateObject(18450, 1546.140015, -2456.191406, 21.297863, 329.0603, 0.0000, 0.0000); CreateObject(18450, 1623.260254, -2456.316895, 21.325216, 329.0603, 0.0000, 0.0000); CreateObject(18450, 1651.238525, -2451.507324, 21.927816, 329.0603, 354.8434, 36.9558); CreateObject(18450, 1514.996216, -2437.042236, 20.322863, 329.0603, 356.5623, 272.4414); CreateObject(1632, 1462.452026, -2467.753174, 13.854792, 0.0000, 0.0000, 48.9879); CreateObject(6066, 1457.676514, -2464.121338, 15.155136, 0.0000, 0.0000, 319.7103); CreateObject(18367, 1476.330688, -2524.552246, 12.028822, 356.5623, 0.0000, 0.0000); CreateObject(18367, 1475.915161, -2553.594971, 17.072630, 356.5623, 4.2972, 24.0642); CreateObject(18367, 1489.110352, -2580.103027, 22.411070, 335.0763, 3.4377, 106.5700); CreateObject(13647, 1591.419678, -2506.219727, 12.550659, 0.0000, 0.0000, 0.0000); CreateObject(13647, 1629.526489, -2506.361572, 12.550659, 0.0000, 0.0000, 179.6226); CreateObject(13648, 1569.776245, -2484.829834, 12.550659, 0.0000, 0.0000, 0.0000); CreateObject(13648, 1588.794556, -2464.964600, 12.550659, 0.0000, 0.0000, 92.8191); CreateObject(13604, 1716.028076, -2627.191650, 14.254892, 0.0000, 0.0000, 356.5623); CreateObject(13641, 1705.526733, -2620.647461, 13.004530, 0.0000, 0.0000, 359.1406); CreateObject(13638, 1742.254272, -2598.460449, 14.844324, 0.0000, 0.0000, 0.0000); CreateObject(13638, 1748.627441, -2598.488770, 22.680859, 0.0000, 0.0000, 179.6224); CreateObject(13590, 1779.393066, -2592.688232, 13.772736, 0.0000, 0.0000, 0.0000); CreateObject(12956, 1817.346924, -2597.524414, 16.375118, 0.0000, 0.0000, 0.0000); CreateObject(12956, 1443.181885, -2518.544922, 16.375118, 0.0000, 0.0000, 0.0000); CreateObject(12956, 1442.957275, -2518.587402, 25.010216, 0.0000, 25.7831, 0.0000); CreateObject(12914, 1828.815186, -2637.606689, 14.247988, 0.0000, 0.0000, 197.6704); CreateObject(6052, 1555.173706, -2526.750000, 15.294515, 0.0000, 0.0000, 12.0321); CreateObject(6052, 1560.544067, -2525.888428, 19.662371, 3.4377, 0.8594, 184.6750); CreateObject(3364, 1496.999023, -2532.055420, 12.702896, 0.0000, 0.0000, 0.0000); CreateObject(1634, 2074.020996, -2448.508545, 13.844193, 0.0000, 0.0000, 270.6185); CreateObject(6066, 2079.334961, -2448.335693, 15.222322, 0.0000, 0.0000, 180.4818); CreateObject(8397, 2017.606567, -2637.563721, 9.750357, 50.7067, 359.1406, 0.0000); CreateObject(13603, 2092.186035, -2547.947266, 8.831584, 0.0000, 0.0000, 6.0161); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 2112.6982, 2112.6982, 2112.6982); SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 30.3706); SetPlayerCameraPos(playerid, 2108.5190, -2407.8156, 15.0468); SetPlayerCameraLookAt(playerid, 2112.0190, -2411.8156, 13.5468); return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid, COLOR_FEHER,\"Üdvözöllek a szerveren!\"); SendClientMessage(playerid, COLOR_FEHER,\"Ha egy kellemes közösségre, jófej adminokra, és élvezetes játékra vágysz,\"); SendClientMessage(playerid, COLOR_FEHER,\"akkor nálunk a helyed TGF: ON! Ha segítségre szorulsz: /ahelp [Kérdésed]\"); SendClientMessage(playerid, COLOR_FEHER,\"Készítõk-> Mód: Filip || Map: bla0.2\"); SendClientMessage(playerid, COLOR_FEHER,\"Kellemes idõtöltést, jó játékot kíván az admincsapat.\"); SendClientMessage(playerid, COLOR_FEHER,\"A Szerver továbbfejlesztéséhez segítõkész emberek jelentkezését várjuk.\"); SendClientMessage(playerid, COLOR_INFO,napuzenete); TogglePlayerSpectating(playerid, 1); IsLogged[playerid] = 0; IsInDM[playerid] = 0; new file[128], string[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),\"/jatekosok/%s.ini\",name); if(!fexist(file)) { format(string, sizeof string, \"Üdvözöllek %s! \\nÚgy tûnik, elõször jársz itt, ezért regisztrálnod kell! \\n\\nÍrd be a jelszavad!\", name); ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztrál\", \"Vissza.\"); } if(fexist(file)) { format(string, sizeof string, \"Üdvözöllek %s! \\nMár regisztrálva vagy a szerveren, kérlek jelentkezz be! \\n\\nÍrd be a jelszavad.\", name); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Belép\", \"Vissza.\"); } return 1; } public OnPlayerDisconnect(playerid, reason) { new file[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),\"/jatekosok/%s.ini\",name); if(fexist(file) && IsLogged[playerid] == 1) { dini_IntSet(file,\"Pont\", GetPlayerScore(playerid)); dini_IntSet(file,\"Penz\", GetPlayerMoney(playerid)); dini_IntSet(file,\"Deaths\", PlayerInfo[playerid][Deaths]); dini_IntSet(file,\"Kills\", PlayerInfo[playerid][Kills]); dini_IntSet(file,\"Admin\", PlayerInfo[playerid][Admin]); dini_IntSet(file,\"Kickek\", PlayerInfo[playerid][Kickek]); dini_IntSet(file,\"Warn\", PlayerInfo[playerid][Warn]); } IsLogged[playerid] = 0; return 1; } public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(!success) { new strin[128]; format(strin, sizeof(strin), \"Sajnálom de a %s parancs nem létezik, vagy nincs jogosultságod a parancs használatára.\", cmdtext); SendClientMessage(playerid,COLOR_SEMMI, strin); } return 1; } public OnPlayerText(playerid, text[]) { SetPlayerChatBubble(playerid, text, COLOR_FEHER, 100.0, 5000); return 0; } public OnPlayerDeath(playerid, killerid) { PlayerInfo[playerid][Deaths] ++; PlayerInfo[killerid][Kills] ++; return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_REGISTER) { if(response) { new file[128]; new string[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(strlen(inputtext) == 0) { format(string, sizeof string, \"Üdvözöllek %s! \\nÚgy tûnik, elõször jársz itt, ezért regisztrálnod kell! \\n\\nÍrd be a jelszavad!\", name); ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztrál\", \"Vissza.\"); return 0; } format(file,sizeof(file),\"/jatekosok/%s.ini\",name); if(!fexist(file)) { dini_Create(file); dini_IntSet(file,\"Jelszo\", udb_hash(inputtext)); dini_IntSet(file,\"Pont\", GetPlayerScore(playerid)); dini_IntSet(file,\"Penz\", GetPlayerMoney(playerid)); dini_IntSet(file,\"Deaths\", PlayerInfo[playerid][Deaths]); dini_IntSet(file,\"Kills\", PlayerInfo[playerid][Kills]); dini_IntSet(file,\"Admin\", PlayerInfo[playerid][Admin]); dini_IntSet(file,\"Kickek\", PlayerInfo[playerid][Kickek]); dini_IntSet(file,\"Warn\", PlayerInfo[playerid][Warn]); format(string, sizeof string, \"Üdvözöllek %s! \\nMár regisztrálva vagy a szerveren, kérlek jelentkezz be! \\n\\nÍrd be a jelszavad.\", name); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"DIALOG_LOGIN\", \"Cancel.\"); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); GetPlayerName(playerid, name, sizeof(name)); printf(\"%s sikeresen regisztrált!\", name); } } } if(dialogid == DIALOG_LOGIN) { if(response) { new file[128]; new string[128]; new PlayerName[24]; if(strlen(inputtext) == 0) { GetPlayerName(playerid, PlayerName, sizeof PlayerName); format(string, sizeof string, \"Üdvözöllek %s! \\nMár regisztrálva vagy a szerveren, kérlek jelentkezz be! \\n\\nÍrd be a jelszavad.\", PlayerName); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"DIALOG_LOGIN\", \"Cancel.\"); return 0; } new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),\"/jatekosok/%s.ini\",name); if(fexist(file)) { new password = dini_Int(file, \"Jelszo\"); new neve[MAX_PLAYER_NAME],str[128]; if(udb_hash(inputtext) != password) { GetPlayerName(playerid,neve,sizeof(neve)); PlayerInfo[playerid][Kickek] ++; format(str,sizeof(str),\"{DD0000}Kick: {00FF00}%s kirúgva a rendszer által! OK: {FF0000}Helytelen jelszó!\",neve); SendClientMessageToAll(COLOR_SEMMI,str); ShowPlayerDialog(playerid,133131,DIALOG_STYLE_MSGBOX,\"KICK\",\"Helytelen jelszót írtál be, így ki lettél rúgva!\",\"Rendben\",\"\"); printf(\"%s Nem tudott bejelentkezni!\", neve); NKick(playerid); } else { IsLogged[playerid] = 1; ResetPlayerMoney(playerid); SetPlayerScore(playerid, dini_Int(file,\"Pont\")); GivePlayerMoney(playerid, dini_Int(file,\"Penz\")); PlayerInfo[playerid][Deaths] = dini_Int(file,\"Deaths\"); PlayerInfo[playerid][Kills] = dini_Int(file,\"Kills\"); PlayerInfo[playerid][Admin] = dini_Int(file,\"Admin\"); PlayerInfo[playerid][Kickek] = dini_Int(file,\"Kickek\"); PlayerInfo[playerid][Warn] = dini_Int(file,\"Warn\"); new udv[128]; format(udv,sizeof(udv),\"Sikeres csatlakozás! Pontjaid száma: %i, Pénzed: $%i\",GetPlayerScore(playerid), GetPlayerMoney(playerid)); SendClientMessage(playerid, COLOR_INFO, udv); TogglePlayerSpectating(playerid, 0); } } } } return 0; } public NewKick(playerid) { Kick(playerid); } NKick(playerid) { SetTimerEx(\"NewKick\", 500, 0, \"d\", playerid); } //==================================================================================================== //=========================================== !PARANCSOK! ======================================== //==================================================================================================== CMD:o(playerid, params[]) { new S[100], S2[128], Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); if(sscanf(params, \"s\", S)) return SendClientMessage(playerid, -1, \"Használat: /ooc < Szöveg >\"); format(S2, sizeof(S2), \"((OOC - %s: %s))\", Name, S); SendClientMessageToAll(-1, S2); return 1; } CMD:b(playerid, params[]) { new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); new S[100]; if(sscanf(params, \"s\", S)) return SendClientMessage(playerid, -1, \"Használat: /b < Szöveg >\"); if(IsPlayerConnected(playerid)) { new string[256]; format(string, sizeof(string), \"%s: (( %s ))\", Name, S); ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); } return 1; } CMD:help(playerid) { SendClientMessage(playerid, COLOR_GREEN, \"/statisztika\"); if(PlayerInfo[playerid][Admin] > 0) {SendClientMessage(playerid,COLOR_INFO, \"Admin: /ah\");} return 1; } CMD:statisztika(playerid) { new uzenet[128],uzenet2[128], nev[MAX_PLAYER_NAME], adminszint[30]; if(PlayerInfo[playerid][Admin] == 0) {adminszint = \"Játékos\";} if(PlayerInfo[playerid][Admin] == 1) {adminszint = \"V.I.P\";} if(PlayerInfo[playerid][Admin] == 2) {adminszint = \"Segítõ\";} if(PlayerInfo[playerid][Admin] == 3) {adminszint = \"Moderátor\";} if(PlayerInfo[playerid][Admin] == 4) {adminszint = \"Adminisztrátor\";} if(PlayerInfo[playerid][Admin] == 5) {adminszint = \"Fõ-Adminisztrátor\";} if(PlayerInfo[playerid][Admin] == 3333) {adminszint = \"Mapper\";} if(PlayerInfo[playerid][Admin] == 5555) {adminszint = \"Scripter\";} if(IsPlayerAdmin(playerid)) {adminszint = \"RCON Admin\";} GetPlayerName(playerid,nev,sizeof(nev)); format(uzenet,sizeof(uzenet), \"Név: %s | Rang: %s | Pontszám: %i | Halálok: %i | Ölések: %i | Pénz: $%i\",nev,adminszint,GetPlayerScore(playerid),PlayerInfo[playerid][Deaths],PlayerInfo[playerid][Kills], GetPlayerMoney(playerid)); format(uzenet2,sizeof(uzenet2),\"Kickjeid száma: %i, Figyelmeztetéseid száma: %i\",PlayerInfo[playerid][Kickek],PlayerInfo[playerid][Warn]); SendClientMessage(playerid,COLOR_TURKTIZ,uzenet); SendClientMessage(playerid,COLOR_TURKTIZ,uzenet2); return 1; } //==================================================================================================== //=========================================== RANGOSPARANCSOK ==================================== //==================================================================================================== CMD:ah(playerid) { if(PlayerInfo[playerid][Admin] > 0) { if(PlayerInfo[playerid][Admin] >= 1) { SendClientMessage(playerid,COLOR_RED,\"VIP Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 2) { SendClientMessage(playerid,COLOR_RED,\"Segítõ Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"/kick\"); } if(PlayerInfo[playerid][Admin] >= 3) { SendClientMessage(playerid,COLOR_RED,\"Moderátor Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 4) { SendClientMessage(playerid,COLOR_RED,\"Admin Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 5) { SendClientMessage(playerid,COLOR_RED,\"Fõadmin Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 3333) { SendClientMessage(playerid,COLOR_RED,\"Mapper Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 5555) { SendClientMessage(playerid,COLOR_RED,\"SCRIPTER Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"/resi, /adminszint\"); } } else { nemvagyadmin } return 1; } //==================================================================================================== //=========================================== uj.VIP! ============================================ //==================================================================================================== //==================================================================================================== //=========================================== uj.SEGÍTÕ! ========================================= //==================================================================================================== CMD:kick(playerid, params[]) { new id, indok[128]; if(sscanf(params,\"us\", id,indok)) return SendClientMessage(playerid, COLOR_INFO,\"Használat: /kick \"); if(IsPlayerConnected(id)) { if(PlayerInfo[playerid][Admin] >= 2) { new adminneve[MAX_PLAYER_NAME],kickeltneve[MAX_PLAYER_NAME],uzenet[128]; GetPlayerName(playerid,adminneve,sizeof(adminneve)); GetPlayerName(id,kickeltneve,sizeof(kickeltneve)); format(uzenet,sizeof(uzenet),\"Kick: %s ki lett rúgva %s által! Oka: %s\",kickeltneve,adminneve,indok); SendClientMessageToAll(COLOR_INFO, uzenet); PlayerInfo[id][Kickek] ++; NKick(id); } else{nemvagyadmin} } else { SendClientMessage(playerid, COLOR_RED, \"A játékos nem elérhetõ!\"); } return 1; } //==================================================================================================== //=========================================== uj.MODERÁTOR! ====================================== //==================================================================================================== //==================================================================================================== //=========================================== uj.admin! ========================================== //==================================================================================================== //==================================================================================================== //=========================================== uj.foadmin! ======================================== //==================================================================================================== //==================================================================================================== //=========================================== uj.mapper! ========================================= //==================================================================================================== //==================================================================================================== //=========================================== uj.scripter! ======================================= //==================================================================================================== CMD:adminszint(playerid, params[]) { new ujadmin, adminszint; if(sscanf(params,\"ui\", ujadmin,adminszint)) return SendClientMessage(playerid, COLOR_INFO,\"Használat: /adminszint \"); if(PlayerInfo[playerid][Admin] == 5555 || IsPlayerAdmin(playerid)) { if(IsPlayerConnected(ujadmin)) { if(adminszint < 0 || adminszint > 5) { SendClientMessage(playerid,COLOR_INFO, \"Az adminszint 0-5-ig terjed!\"); } else { new adoneve[MAX_PLAYER_NAME], kaponeve[MAX_PLAYER_NAME], rangneve[30]; if(adminszint == 0) {rangneve = \"Játékos\";} if(adminszint == 1) {rangneve = \"V.I.P\";} if(adminszint == 2) {rangneve = \"Segítõ\";} if(adminszint == 3) {rangneve = \"Moderátor\";} if(adminszint == 4) {rangneve = \"Adminisztrátor\";} if(adminszint == 5) {rangneve = \"Fõ-Adminisztrátor\";} new adouz[128],kapouz[128]; GetPlayerName(playerid,adoneve,sizeof(adoneve)); GetPlayerName(ujadmin, kaponeve,sizeof(kaponeve)); format(kapouz,sizeof(kapouz),\"%s megváltoztatta %s-re (%i ) a rangodat!\",adoneve,rangneve,adminszint); format(adouz,sizeof(adouz), \"Megváltoztattad %s rangját %s-re(%i)!\", kaponeve, rangneve, adminszint); SendClientMessage(playerid,COLOR_TURKTIZ,adouz); SendClientMessage(ujadmin, COLOR_TURKTIZ,kapouz); PlayerInfo[ujadmin][Admin] = adminszint; } } else{SendClientMessage(playerid, COLOR_RED, \"A játékos nem elérhetõ!\");} } else{nemvagyadmin} return 1; } CMD:gmx(playerid, params[]) { if(PlayerInfo[playerid][Admin] == 5555 || IsPlayerAdmin(playerid)) { new indok[50]; if(sscanf(params,\"s\", indok)) return SendClientMessage(playerid, COLOR_INFO,\"Használat: /resi \"); new nev[MAX_PLAYER_NAME],uzenet[128]; GetPlayerName(playerid,nev,sizeof(nev)); format(uzenet,sizeof(uzenet),\"Szerver: %s újraindította a szervert! Indok: %s\", nev,indok); SendClientMessageToAll(COLOR_RED,uzenet); SendRconCommand(\"gmx\"); } else {nemvagyadmin} return 1; } //==================================================================================================== //=========================================== !ALIAS! =========================================== //==================================================================================================== CMD:resi(playerid, params[]){return cmd_gmx(playerid,params);} CMD:stats(playerid){return cmd_statisztika(playerid);} public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5) { if(IsPlayerConnected(playerid)) { new Float:posx, Float:posy, Float:posz; new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))) { GetPlayerPos(i, posx, posy, posz); tempposx = (oldposx -posx); tempposy = (oldposy -posy); tempposz = (oldposz -posz); if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) // If the player is within 16 meters { SendClientMessage(i, col1, string); } else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) // within 8 meters { SendClientMessage(i, col2, string); } else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) //4 meters { SendClientMessage(i, col3, string); } else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) //2 meters { SendClientMessage(i, col4, string); } else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) //1 meter { SendClientMessage(i, col5, string); } } else { SendClientMessage(i, col1, string); } } } return 1; } // Adminszintek: 0) Játékos, 1) V.I.P, 2) Segítõ, 3) Moderátor, 4)Admin, 5) Fõadmin, 3333) Mapper, 5555) Scripter
24
« Dátum: 2013. október 27. - 14:09:12 »
Köszönöm [Az várhatóan kb mikor lessz?] mert akkor még nem mappolok meg írok bele semmit..
25
« Dátum: 2013. október 27. - 14:05:20 »
Értem igen tudom hogy félkész mód, inkább alap, de ezt szeretném tovább fejleszteni mert nagyon tetszik tudnátok segítséget adni hogyan lehetne javítani? (Ja meg ha úgyvan áthejezhetnétek a témát segítségkérésbe köszi
26
« Dátum: 2013. október 27. - 13:56:24 »
Win7 de eddig az összes mód jól futott most meg semmi.. Úgyvan beírva mindenhová .dll
27
« Dátum: 2013. október 27. - 13:37:50 »
Köszi szépen ,és bocsi félre néztem, azthittem segítség kérésbe nyitottam Neharagudjatok.. Dupla hozzászólás automatikusan összefûzve. ( 2013. október 27. - 13:43:35 )
Mégvalami ha az összes pluginom a legfrissebb (mondjuk itt csak az sscanf kell, és még mindíg azt írja akkor mi tévõ legyek?) (már töltöttem le új szervert azzal is próbáltam azzal se jó)
28
« Dátum: 2013. október 27. - 13:16:45 »
Sziasztok nemrégiben leszedtem egy módot innen fórumról. (alap mód) A Kérdésem a következõ: A Módban semmi hiba, minden tökéletes, de mégis valamiért Runtime Error(19)-et ír a szerver, van megoldás a szerver mûködtetésére? Forráskód: //=========================================================================INCLUDEK #include #include #include #include #include //=========================================================================DIALOGOK #define DIALOG_REGISTER 8 #define DIALOG_LOGIN 9 //=========================================================================SZÖVEGEK/PARANCSOK #define napuzenete \"{00FF00}MOTD: {00FFD5}\" #define nemvagyadmin SendClientMessage(playerid, COLOR_SEMMI, \"{FF0000}[Hiba] {FF8040}A rangod túl alacsony a parancs használatához!\"); //=========================================================================SZERVER BEÁLLÍTÁSOK new hosztnev[100] = \"[HUN] RPG Teszt szerver\"; new modnev[20] = \"RPG\"; new modverzio[10] = \"1.0.2\"; new mapneve[20] = \"Egyéni\"; new mapverzio[5] = \"1.0\"; //=========================================================================ENUM-OK enum pInfo { Jelszo, Admin, Pont, Penz, Deaths, Kills, Kickek, Warn, Bann, Bannoka } enum TP { Float: tX, Float: tY, Float: tZ, Float: tZA, Int, SCMTA[128]}; //=========================================================================GLOBÁLIS VÁLTOZÓK new PlayerInfo[MAX_PLAYERS][pInfo]; new IsLogged[MAX_PLAYERS]; new IsInDM[MAX_PLAYERS]; //=========================================================================FORWARDOK forward NewKick(playerid); forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5); //=========================================================================PRAGMA #pragma unused ret_memcpy #pragma unused strtok //=========================================================================SZINEK #define COLOR_TURKTIZ 0x40E0D0FF #define COLOR_FEHER -1 #define COLOR_SEMMI 0x0 #define COLOR_INFO 0xFFFFE1FF #define COLOR_GRAD1 0xB4B5B7FF #define COLOR_GRAD2 0xBFC0C2FF #define COLOR_GRAD3 0xCBCCCEFF #define COLOR_GRAD4 0xD8D8D8FF #define COLOR_GRAD5 0xE3E3E3FF #define COLOR_GRAD6 0xF0F0F0FF #define COLOR_GREY 0xAFAFAFAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define COLOR_FADE1 0xE6E6E6E6 #define COLOR_FADE2 0xC8C8C8C8 #define COLOR_FADE3 0xAAAAAAAA #define COLOR_FADE4 0x8C8C8C8C #define COLOR_FADE5 0x6E6E6E6E #define COLOR_PURPLE 0xC2A2DAAA #define COLOR_DARKBLUE 0x2641FEAA #define COLOR_ALLDEPT 0xFF8282AA //==================================================================================================== //==================================================================================================== main() { print(\"\\nA Szerver sikeresen elindult.\"); } public OnGameModeInit() { new gmtext[50], szervernev[50], mapnev[50]; format(gmtext,sizeof(gmtext), \"[ %s | %s ]\", modnev, modverzio); format(szervernev,sizeof(szervernev),\"hostname %s\",hosztnev); format(mapnev,sizeof(mapnev),\"mapname %s [v%s]\",mapneve, mapverzio); SetGameModeText(gmtext); SendRconCommand(szervernev); SendRconCommand(mapnev); //JÁRMÛVEK AddStaticVehicle(522,2132.5444,-2412.6985,13.1213,179.2344,3,1); // nrg1-lsair AddStaticVehicle(522,2130.7659,-2412.4524,13.1076,173.2770,4,2); // nrg2-lsair AddStaticVehicle(522,2128.9338,-2412.9070,13.1039,176.4026,5,3); // nrg3-lsair //SKINEK AddPlayerClass(0,2112.0190, 2112.0190, -2411.8156, 13.5468,0,0,0,0,0,0); AddPlayerClass(217,2112.0190, 2112.0190, -2411.8156, 13.5468,0,0,0,0,0,0); //map CreateObject(1634, 1920.390991, -2427.586426, 13.836435, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1920.326294, -2421.297852, 17.654724, 12.0321, 0.0000, 0.0000); CreateObject(6066, 1920.274170, -2415.929932, 19.564552, 0.0000, 0.0000, 270.7224); CreateObject(4005, 1928.986816, -2376.640625, 25.546968, 0.0000, 0.0000, 0.0000); CreateObject(1503, 2026.420166, -2405.819824, 12.940992, 0.0000, 0.0000, 358.2811); CreateObject(1503, 2026.424683, -2404.477051, 13.961729, 24.9237, 0.0000, 358.2811); CreateObject(1683, 1954.768311, -2450.569824, 18.441742, 0.0000, 0.0000, 268.0403); CreateObject(1655, 1946.016357, -2464.215332, 13.839231, 0.0000, 8.5944, 335.9358); CreateObject(1655, 1951.194214, -2455.821777, 20.999887, 24.9237, 13.7510, 324.7631); CreateObject(1655, 1958.068604, -2465.203613, 13.839228, 0.0000, 0.0000, 21.4859); CreateObject(1655, 1948.312500, -2459.798096, 16.615503, 12.8916, 9.4538, 335.9358); CreateObject(1655, 1955.823975, -2460.617920, 17.051891, 24.0642, 349.6868, 22.3454); CreateObject(4006, 1975.938477, -2418.286865, 32.324207, 0.0000, 0.0000, 0.0000); CreateObject(1655, 1942.301025, -2471.041748, 10.789251, 0.0000, 8.5944, 333.3575); CreateObject(8040, 1826.726685, -2809.450684, 220.143463, 0.0000, 0.0000, 90.2409); CreateObject(18450, 1825.871460, -2734.409668, 200.630020, 0.0000, 27.5020, 91.1003); CreateObject(18450, 1824.503418, -2669.060059, 155.884811, 0.0000, 41.2530, 91.1003); CreateObject(18450, 1823.612549, -2633.634277, 128.272079, 0.0000, 24.9237, 91.9597); CreateObject(18450, 1823.907959, -2638.795898, 129.446213, 0.0000, 13.7510, 91.9597); CreateObject(18450, 1822.481445, -2596.012451, 123.221230, 0.0000, 3.4377, 91.9597); CreateObject(18450, 1821.863037, -2579.108398, 127.438377, 0.0000, 353.9839, 91.9597); CreateObject(18450, 1822.009399, -2585.995361, 129.466614, 0.0000, 345.3896, 91.9597); CreateObject(18450, 1821.683838, -2564.373779, 138.656708, 358.2811, 337.6546, 90.2408); CreateObject(18450, 1821.669922, -2570.275146, 140.694382, 0.8594, 328.2008, 91.9597); CreateObject(18450, 1821.689941, -2569.199951, 142.603256, 359.1406, 311.0122, 89.3814); CreateObject(1894, 1833.963989, -2466.290039, 15.767323, 0.0000, 0.0000, 185.6385); CreateObject(3363, 1932.003296, -2434.515381, 12.574472, 0.0000, 0.0000, 140.9476); CreateObject(5390, 1845.096680, -2450.564453, 19.368885, 0.0000, 0.0000, 0.0000); CreateObject(8172, 1844.507202, -2519.420410, 13.364076, 0.0000, 353.1245, 90.2409); CreateObject(4028, 1752.788696, -2465.150391, 21.387001, 0.0000, 0.0000, 91.9597); CreateObject(5005, 1839.068970, -2401.449951, 16.106205, 0.0000, 0.0000, 0.0000); CreateObject(5005, 1901.793457, -2422.385498, 16.090637, 0.0000, 0.0000, 90.2408); CreateObject(5005, 1901.677002, -2422.839355, 21.623993, 0.0000, 0.0000, 90.2408); CreateObject(7371, 1788.500000, -2400.556152, 12.554509, 0.0000, 0.0000, 0.0000); CreateObject(1309, 1832.093994, -2402.138672, 21.165392, 0.0000, 0.0000, 89.3814); CreateObject(1267, 1789.120850, -2498.049805, 29.797539, 0.0000, 0.0000, 134.9317); CreateObject(1260, 1901.640259, -2475.289307, 28.965591, 0.0000, 0.0000, 0.0000); CreateObject(5400, 1836.352539, -2419.695313, 21.123297, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1655.867432, -2552.855225, 15.047325, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1655.997803, -2541.829346, 15.047325, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1655.812500, -2533.862305, 15.047325, 0.0000, 0.0000, 0.0000); CreateObject(4019, 1541.792114, -2619.187500, 15.055195, 0.0000, 0.0000, 0.0000); CreateObject(4023, 1534.224854, -2568.151611, 24.412941, 0.0000, 0.0000, 0.0000); CreateObject(4023, 1575.277588, -2568.229492, 9.512943, 0.0000, 0.0000, 0.0000); CreateObject(1633, 1559.595581, -2577.342041, 21.485107, 0.0000, 0.0000, 179.6224); CreateObject(1633, 1559.603516, -2581.189453, 24.426580, 26.6425, 0.0000, 179.6224); CreateObject(1633, 1559.511841, -2583.802979, 28.222662, 53.2850, 0.0000, 179.6224); CreateObject(1633, 1559.416382, -2584.740479, 32.811241, 76.4898, 0.0000, 179.6224); CreateObject(1634, 1609.892090, -2568.534912, 13.844193, 0.0000, 0.0000, 90.2409); CreateObject(1633, 1520.137451, -2579.636963, 36.385109, 0.0000, 0.0000, 88.5220); CreateObject(1633, 1516.782471, -2579.482178, 39.330536, 30.0803, 359.1406, 88.5220); CreateObject(1633, 1514.380005, -2579.555664, 44.296776, 53.2850, 359.1406, 88.5220); CreateObject(1633, 1512.969604, -2579.670166, 51.068199, 70.4738, 359.1406, 89.3814); CreateObject(18367, 1548.095337, -2641.532227, 54.123940, 356.5623, 0.0000, 0.0000); CreateObject(18367, 1548.372681, -2671.024902, 59.205868, 356.5623, 353.9839, 321.3253); CreateObject(18367, 1530.246460, -2693.976074, 64.307991, 356.5623, 353.9839, 281.7913); CreateObject(18367, 1500.957397, -2699.993408, 69.493767, 356.5623, 346.2490, 232.8034); CreateObject(18367, 1477.399536, -2681.144043, 74.673050, 356.5623, 346.2490, 193.2690); CreateObject(18367, 1471.319824, -2652.048340, 79.806084, 356.5623, 346.2490, 142.5619); CreateObject(18367, 1490.048462, -2628.610352, 84.903709, 356.5623, 346.2490, 110.7628); CreateObject(18262, 1523.864868, -2617.164795, 91.480965, 0.0000, 346.2490, 104.8513); CreateObject(3458, 1727.391113, -2496.096191, 31.073299, 0.0000, 0.0000, 0.0000); CreateObject(3458, 1710.434692, -2495.985840, 34.123299, 0.0000, 19.7670, 0.0000); CreateObject(3458, 1689.362549, -2495.895020, 45.004475, 0.0000, 38.6747, 0.0000); CreateObject(1632, 1674.129883, -2495.850586, 59.474987, 30.0803, 359.1406, 90.2409); CreateObject(1632, 1672.238647, -2496.143555, 64.528412, 61.0199, 359.1406, 90.2409); CreateObject(1632, 1673.633667, -2496.099121, 70.117401, 108.2889, 359.1406, 90.2409); CreateObject(3458, 1700.715088, -2496.065186, 64.358444, 0.0000, 0.0000, 0.0000); CreateObject(1632, 1725.296387, -2495.369141, 67.187027, 2.5783, 359.1406, 275.8791); CreateObject(6066, 1731.201904, -2494.640625, 68.295700, 0.0000, 0.0000, 183.9196); CreateObject(3458, 1973.908447, -2557.640869, 12.443415, 25.7831, 348.8273, 26.6425); CreateObject(3458, 2007.258667, -2549.244873, 18.509577, 25.7831, 348.8273, 12.8916); CreateObject(3458, 2042.062378, -2548.293213, 24.814699, 25.7831, 348.8273, 359.1406); CreateObject(3458, 2046.394653, -2558.371826, 25.201902, 20.6265, 9.4538, 194.9878); CreateObject(3458, 2009.552490, -2567.658203, 19.480406, 20.6265, 9.4538, 186.3934); CreateObject(3458, 1981.978394, -2570.252441, 14.293402, 17.1887, 13.7510, 173.5018); CreateObject(5126, 2127.024414, -2447.415283, 27.496220, 0.0000, 0.0000, 180.4820); CreateObject(1634, 1880.584473, -2543.116699, 18.956671, 30.0803, 0.8594, 270.6186); CreateObject(1634, 1887.837524, -2543.281250, 18.824345, 30.0803, 0.8594, 88.5220); CreateObject(1634, 1461.820557, -2615.539795, 13.594196, 0.0000, 0.0000, 181.3413); CreateObject(1634, 1461.740845, -2619.289063, 16.922709, 25.7831, 0.0000, 181.3413); CreateObject(1634, 1461.788818, -2621.751953, 21.706373, 46.4095, 0.0000, 181.3413); CreateObject(1634, 1461.629395, -2621.891602, 26.562145, 72.1926, 0.0000, 181.3413); CreateObject(1634, 1461.953491, -2620.154297, 31.411814, 97.9757, 0.0000, 181.3413); CreateObject(1634, 1461.818604, -2615.843994, 35.379841, 132.3533, 0.0000, 181.3413); CreateObject(1634, 1461.868896, -2609.607178, 36.324261, 162.4338, 0.0000, 181.3413); CreateObject(1634, 1461.827637, -2603.462402, 34.112877, 190.7954, 0.0000, 181.3413); CreateObject(1634, 1461.693237, -2598.902588, 29.799738, 202.8276, 0.0000, 181.3413); CreateObject(1634, 1461.698242, -2595.439209, 24.717325, 226.8920, 0.0000, 181.3413); CreateObject(1634, 1461.699585, -2594.889648, 18.764059, 258.6908, 0.0000, 181.3413); CreateObject(1634, 1461.888428, -2597.487793, 14.394184, 292.2086, 0.0000, 181.3413); CreateObject(1634, 1903.522339, -2615.810303, 13.844193, 0.0000, 0.0000, 177.9037); CreateObject(6066, 1903.574585, -2621.585938, 15.047325, 0.0000, 0.0000, 86.8030); CreateObject(1634, 1865.415649, -2662.941406, 23.107872, 0.0000, 0.0000, 89.3814); CreateObject(1634, 1844.767822, -2663.392578, 23.738880, 0.0000, 0.0000, 270.7226); CreateObject(1634, 1800.862305, -2661.185059, 24.184978, 0.0000, 0.0000, 89.3814); CreateObject(1634, 1732.223633, -2661.293213, 23.985216, 0.0000, 0.0000, 89.3814); CreateObject(1634, 1661.628418, -2661.717773, 24.437004, 0.0000, 0.0000, 89.3814); CreateObject(1634, 1637.486816, -2661.088867, 24.385891, 0.0000, 0.0000, 269.8628); CreateObject(1634, 1702.829346, -2663.180908, 24.494364, 0.0000, 0.0000, 269.8628); CreateObject(1634, 1772.961792, -2660.661133, 25.021872, 0.0000, 0.0000, 269.8628); CreateObject(3363, 1520.412720, -2557.922852, 35.120171, 0.0000, 0.0000, 242.3613); CreateObject(18450, 2126.020996, -2541.682373, 14.790071, 30.9397, 0.0000, 274.0563); CreateObject(18450, 2090.552490, -2509.975586, 15.107306, 30.9397, 0.0000, 4.2972); CreateObject(18450, 2094.026855, -2581.428223, 15.115066, 30.9397, 0.0000, 189.9357); CreateObject(18450, 2057.927490, -2554.704590, 15.115066, 30.9397, 0.0000, 95.3977); CreateObject(18450, 2131.650635, -2540.371338, 24.431986, 89.3814, 0.0000, 274.0563); CreateObject(18450, 2095.658447, -2587.454590, 24.321051, 89.3814, 0.0000, 189.8314); CreateObject(18450, 2089.583740, -2504.345947, 24.322136, 89.3814, 0.0000, 4.2972); CreateObject(13592, 1950.670410, -2586.655029, 22.417496, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1948.919556, -2594.267578, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1947.800537, -2602.131348, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1946.740479, -2610.051758, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1945.556519, -2617.891602, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1944.525391, -2625.822021, 24.117485, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1943.154541, -2633.378906, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(13592, 1942.024536, -2640.750488, 24.117481, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1938.251221, -2644.635986, 16.133209, 3.4377, 0.8594, 88.5220); CreateObject(13592, 1592.767944, -2623.800293, 20.292509, 273.1970, 347.9679, 359.1406); CreateObject(13592, 1591.693726, -2624.496582, 28.100872, 273.1970, 347.9679, 359.1406); CreateObject(13592, 1590.561157, -2625.343262, 35.802467, 273.1970, 347.9679, 359.1406); CreateObject(13592, 1588.995361, -2626.142578, 43.268219, 271.4781, 350.5462, 359.1406); CreateObject(13592, 1587.843140, -2626.067627, 51.207684, 271.4781, 350.5462, 359.1406); CreateObject(13592, 1587.025757, -2625.708984, 58.884254, 271.4781, 350.5462, 359.1406); CreateObject(1655, 1601.265381, -2632.176514, 12.747004, 0.0000, 16.3293, 110.8673); CreateObject(1634, 1603.566772, -2648.630371, 25.964636, 0.0000, 0.0000, 89.3814); CreateObject(6066, 1597.544067, -2648.827881, 27.470863, 0.0000, 0.0000, 0.0000); CreateObject(1634, 1505.513672, -2420.676270, 13.852005, 0.0000, 0.0000, 288.6668); CreateObject(1503, 1508.089478, -2419.850830, 16.363384, 30.0803, 0.0000, 286.9479); CreateObject(6066, 1378.466431, -2586.717773, 16.247307, 0.0000, 0.0000, 0.0000); CreateObject(18450, 1706.511597, -2420.607666, 24.077515, 0.0000, 354.8434, 336.7952); CreateObject(18450, 1633.327881, -2412.746582, 21.547874, 0.0000, 0.0000, 0.0000); CreateObject(18450, 1570.398193, -2412.628174, 21.375675, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1580.460327, -2428.954102, 14.880140, 0.0000, 0.0000, 268.0403); CreateObject(4141, 1399.413574, -2434.576416, 23.604845, 0.0000, 0.0000, 89.3814); CreateObject(14675, 1397.213135, -2436.551514, 23.558849, 0.0000, 0.0000, 89.3814); CreateObject(1894, 1424.915405, -2479.907959, 12.554691, 0.0000, 0.0000, 0.0000); CreateObject(6066, 1440.645020, -2473.286133, 11.655146, 0.0000, 0.0000, 139.2289); CreateObject(6066, 1378.655396, -2487.853027, 16.105122, 0.0000, 0.0000, 359.2444); CreateObject(18450, 1546.140015, -2456.191406, 21.297863, 329.0603, 0.0000, 0.0000); CreateObject(18450, 1623.260254, -2456.316895, 21.325216, 329.0603, 0.0000, 0.0000); CreateObject(18450, 1651.238525, -2451.507324, 21.927816, 329.0603, 354.8434, 36.9558); CreateObject(18450, 1514.996216, -2437.042236, 20.322863, 329.0603, 356.5623, 272.4414); CreateObject(1632, 1462.452026, -2467.753174, 13.854792, 0.0000, 0.0000, 48.9879); CreateObject(6066, 1457.676514, -2464.121338, 15.155136, 0.0000, 0.0000, 319.7103); CreateObject(18367, 1476.330688, -2524.552246, 12.028822, 356.5623, 0.0000, 0.0000); CreateObject(18367, 1475.915161, -2553.594971, 17.072630, 356.5623, 4.2972, 24.0642); CreateObject(18367, 1489.110352, -2580.103027, 22.411070, 335.0763, 3.4377, 106.5700); CreateObject(13647, 1591.419678, -2506.219727, 12.550659, 0.0000, 0.0000, 0.0000); CreateObject(13647, 1629.526489, -2506.361572, 12.550659, 0.0000, 0.0000, 179.6226); CreateObject(13648, 1569.776245, -2484.829834, 12.550659, 0.0000, 0.0000, 0.0000); CreateObject(13648, 1588.794556, -2464.964600, 12.550659, 0.0000, 0.0000, 92.8191); CreateObject(13604, 1716.028076, -2627.191650, 14.254892, 0.0000, 0.0000, 356.5623); CreateObject(13641, 1705.526733, -2620.647461, 13.004530, 0.0000, 0.0000, 359.1406); CreateObject(13638, 1742.254272, -2598.460449, 14.844324, 0.0000, 0.0000, 0.0000); CreateObject(13638, 1748.627441, -2598.488770, 22.680859, 0.0000, 0.0000, 179.6224); CreateObject(13590, 1779.393066, -2592.688232, 13.772736, 0.0000, 0.0000, 0.0000); CreateObject(12956, 1817.346924, -2597.524414, 16.375118, 0.0000, 0.0000, 0.0000); CreateObject(12956, 1443.181885, -2518.544922, 16.375118, 0.0000, 0.0000, 0.0000); CreateObject(12956, 1442.957275, -2518.587402, 25.010216, 0.0000, 25.7831, 0.0000); CreateObject(12914, 1828.815186, -2637.606689, 14.247988, 0.0000, 0.0000, 197.6704); CreateObject(6052, 1555.173706, -2526.750000, 15.294515, 0.0000, 0.0000, 12.0321); CreateObject(6052, 1560.544067, -2525.888428, 19.662371, 3.4377, 0.8594, 184.6750); CreateObject(3364, 1496.999023, -2532.055420, 12.702896, 0.0000, 0.0000, 0.0000); CreateObject(1634, 2074.020996, -2448.508545, 13.844193, 0.0000, 0.0000, 270.6185); CreateObject(6066, 2079.334961, -2448.335693, 15.222322, 0.0000, 0.0000, 180.4818); CreateObject(8397, 2017.606567, -2637.563721, 9.750357, 50.7067, 359.1406, 0.0000); CreateObject(13603, 2092.186035, -2547.947266, 8.831584, 0.0000, 0.0000, 6.0161); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 2112.6982, 2112.6982, 2112.6982); SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 30.3706); SetPlayerCameraPos(playerid, 2108.5190, -2407.8156, 15.0468); SetPlayerCameraLookAt(playerid, 2112.0190, -2411.8156, 13.5468); return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid, COLOR_FEHER,\"Üdvözöllek a szerveren!\"); SendClientMessage(playerid, COLOR_FEHER,\"Ha egy kellemes közösségre, jófej adminokra, és élvezetes játékra vágysz,\"); SendClientMessage(playerid, COLOR_FEHER,\"akkor nálunk a helyed TGF: ON! Ha segítségre szorulsz: /ahelp [Kérdésed]\"); SendClientMessage(playerid, COLOR_FEHER,\"Készítõk-> Mód: Filip || Map: bla0.2\"); SendClientMessage(playerid, COLOR_FEHER,\"Kellemes idõtöltést, jó játékot kíván az admincsapat.\"); SendClientMessage(playerid, COLOR_FEHER,\"A Szerver továbbfejlesztéséhez segítõkész emberek jelentkezését várjuk.\"); SendClientMessage(playerid, COLOR_INFO,napuzenete); TogglePlayerSpectating(playerid, 1); IsLogged[playerid] = 0; IsInDM[playerid] = 0; new file[128], string[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),\"/jatekosok/%s.ini\",name); if(!fexist(file)) { format(string, sizeof string, \"Üdvözöllek %s! \\nÚgy tûnik, elõször jársz itt, ezért regisztrálnod kell! \\n\\nÍrd be a jelszavad!\", name); ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztrál\", \"Vissza.\"); } if(fexist(file)) { format(string, sizeof string, \"Üdvözöllek %s! \\nMár regisztrálva vagy a szerveren, kérlek jelentkezz be! \\n\\nÍrd be a jelszavad.\", name); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Belép\", \"Vissza.\"); } return 1; } public OnPlayerDisconnect(playerid, reason) { new file[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),\"/jatekosok/%s.ini\",name); if(fexist(file) && IsLogged[playerid] == 1) { dini_IntSet(file,\"Pont\", GetPlayerScore(playerid)); dini_IntSet(file,\"Penz\", GetPlayerMoney(playerid)); dini_IntSet(file,\"Deaths\", PlayerInfo[playerid][Deaths]); dini_IntSet(file,\"Kills\", PlayerInfo[playerid][Kills]); dini_IntSet(file,\"Admin\", PlayerInfo[playerid][Admin]); dini_IntSet(file,\"Kickek\", PlayerInfo[playerid][Kickek]); dini_IntSet(file,\"Warn\", PlayerInfo[playerid][Warn]); } IsLogged[playerid] = 0; return 1; } public OnPlayerCommandPerformed(playerid, cmdtext[], success) { if(!success) { new strin[128]; format(strin, sizeof(strin), \"Sajnálom de a %s parancs nem létezik, vagy nincs jogosultságod a parancs használatára.\", cmdtext); SendClientMessage(playerid,COLOR_SEMMI, strin); } return 1; } public OnPlayerText(playerid, text[]) { SetPlayerChatBubble(playerid, text, COLOR_FEHER, 100.0, 5000); return 0; } public OnPlayerDeath(playerid, killerid) { PlayerInfo[playerid][Deaths] ++; PlayerInfo[killerid][Kills] ++; return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_REGISTER) { if(response) { new file[128]; new string[128]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(strlen(inputtext) == 0) { format(string, sizeof string, \"Üdvözöllek %s! \\nÚgy tûnik, elõször jársz itt, ezért regisztrálnod kell! \\n\\nÍrd be a jelszavad!\", name); ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztrál\", \"Vissza.\"); return 0; } format(file,sizeof(file),\"/jatekosok/%s.ini\",name); if(!fexist(file)) { dini_Create(file); dini_IntSet(file,\"Jelszo\", udb_hash(inputtext)); dini_IntSet(file,\"Pont\", GetPlayerScore(playerid)); dini_IntSet(file,\"Penz\", GetPlayerMoney(playerid)); dini_IntSet(file,\"Deaths\", PlayerInfo[playerid][Deaths]); dini_IntSet(file,\"Kills\", PlayerInfo[playerid][Kills]); dini_IntSet(file,\"Admin\", PlayerInfo[playerid][Admin]); dini_IntSet(file,\"Kickek\", PlayerInfo[playerid][Kickek]); dini_IntSet(file,\"Warn\", PlayerInfo[playerid][Warn]); format(string, sizeof string, \"Üdvözöllek %s! \\nMár regisztrálva vagy a szerveren, kérlek jelentkezz be! \\n\\nÍrd be a jelszavad.\", name); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"DIALOG_LOGIN\", \"Cancel.\"); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); GetPlayerName(playerid, name, sizeof(name)); printf(\"%s sikeresen regisztrált!\", name); } } } if(dialogid == DIALOG_LOGIN) { if(response) { new file[128]; new string[128]; new PlayerName[24]; if(strlen(inputtext) == 0) { GetPlayerName(playerid, PlayerName, sizeof PlayerName); format(string, sizeof string, \"Üdvözöllek %s! \\nMár regisztrálva vagy a szerveren, kérlek jelentkezz be! \\n\\nÍrd be a jelszavad.\", PlayerName); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"DIALOG_LOGIN\", \"Cancel.\"); return 0; } new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),\"/jatekosok/%s.ini\",name); if(fexist(file)) { new password = dini_Int(file, \"Jelszo\"); new neve[MAX_PLAYER_NAME],str[128]; if(udb_hash(inputtext) != password) { GetPlayerName(playerid,neve,sizeof(neve)); PlayerInfo[playerid][Kickek] ++; format(str,sizeof(str),\"{DD0000}Kick: {00FF00}%s kirúgva a rendszer által! OK: {FF0000}Helytelen jelszó!\",neve); SendClientMessageToAll(COLOR_SEMMI,str); ShowPlayerDialog(playerid,133131,DIALOG_STYLE_MSGBOX,\"KICK\",\"Helytelen jelszót írtál be, így ki lettél rúgva!\",\"Rendben\",\"\"); printf(\"%s Nem tudott bejelentkezni!\", neve); NKick(playerid); } else { IsLogged[playerid] = 1; ResetPlayerMoney(playerid); SetPlayerScore(playerid, dini_Int(file,\"Pont\")); GivePlayerMoney(playerid, dini_Int(file,\"Penz\")); PlayerInfo[playerid][Deaths] = dini_Int(file,\"Deaths\"); PlayerInfo[playerid][Kills] = dini_Int(file,\"Kills\"); PlayerInfo[playerid][Admin] = dini_Int(file,\"Admin\"); PlayerInfo[playerid][Kickek] = dini_Int(file,\"Kickek\"); PlayerInfo[playerid][Warn] = dini_Int(file,\"Warn\"); new udv[128]; format(udv,sizeof(udv),\"Sikeres csatlakozás! Pontjaid száma: %i, Pénzed: $%i\",GetPlayerScore(playerid), GetPlayerMoney(playerid)); SendClientMessage(playerid, COLOR_INFO, udv); TogglePlayerSpectating(playerid, 0); } } } } return 0; } public NewKick(playerid) { Kick(playerid); } NKick(playerid) { SetTimerEx(\"NewKick\", 500, 0, \"d\", playerid); } //==================================================================================================== //=========================================== !PARANCSOK! ======================================== //==================================================================================================== CMD:o(playerid, params[]) { new S[100], S2[128], Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); if(sscanf(params, \"s\", S)) return SendClientMessage(playerid, -1, \"Használat: /ooc < Szöveg >\"); format(S2, sizeof(S2), \"((OOC - %s: %s))\", Name, S); SendClientMessageToAll(-1, S2); return 1; } CMD:b(playerid, params[]) { new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); new S[100]; if(sscanf(params, \"s\", S)) return SendClientMessage(playerid, -1, \"Használat: /b < Szöveg >\"); if(IsPlayerConnected(playerid)) { new string[256]; format(string, sizeof(string), \"%s: (( %s ))\", Name, S); ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); } return 1; } CMD:help(playerid) { SendClientMessage(playerid, COLOR_GREEN, \"/statisztika\"); if(PlayerInfo[playerid][Admin] > 0) {SendClientMessage(playerid,COLOR_INFO, \"Admin: /ah\");} return 1; } CMD:statisztika(playerid) { new uzenet[128],uzenet2[128], nev[MAX_PLAYER_NAME], adminszint[30]; if(PlayerInfo[playerid][Admin] == 0) {adminszint = \"Játékos\";} if(PlayerInfo[playerid][Admin] == 1) {adminszint = \"V.I.P\";} if(PlayerInfo[playerid][Admin] == 2) {adminszint = \"Segítõ\";} if(PlayerInfo[playerid][Admin] == 3) {adminszint = \"Moderátor\";} if(PlayerInfo[playerid][Admin] == 4) {adminszint = \"Adminisztrátor\";} if(PlayerInfo[playerid][Admin] == 5) {adminszint = \"Fõ-Adminisztrátor\";} if(PlayerInfo[playerid][Admin] == 3333) {adminszint = \"Mapper\";} if(PlayerInfo[playerid][Admin] == 5555) {adminszint = \"Scripter\";} if(IsPlayerAdmin(playerid)) {adminszint = \"RCON Admin\";} GetPlayerName(playerid,nev,sizeof(nev)); format(uzenet,sizeof(uzenet), \"Név: %s | Rang: %s | Pontszám: %i | Halálok: %i | Ölések: %i | Pénz: $%i\",nev,adminszint,GetPlayerScore(playerid),PlayerInfo[playerid][Deaths],PlayerInfo[playerid][Kills], GetPlayerMoney(playerid)); format(uzenet2,sizeof(uzenet2),\"Kickjeid száma: %i, Figyelmeztetéseid száma: %i\",PlayerInfo[playerid][Kickek],PlayerInfo[playerid][Warn]); SendClientMessage(playerid,COLOR_TURKTIZ,uzenet); SendClientMessage(playerid,COLOR_TURKTIZ,uzenet2); return 1; } //==================================================================================================== //=========================================== RANGOSPARANCSOK ==================================== //==================================================================================================== CMD:ah(playerid) { if(PlayerInfo[playerid][Admin] > 0) { if(PlayerInfo[playerid][Admin] >= 1) { SendClientMessage(playerid,COLOR_RED,\"VIP Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 2) { SendClientMessage(playerid,COLOR_RED,\"Segítõ Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"/kick\"); } if(PlayerInfo[playerid][Admin] >= 3) { SendClientMessage(playerid,COLOR_RED,\"Moderátor Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 4) { SendClientMessage(playerid,COLOR_RED,\"Admin Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 5) { SendClientMessage(playerid,COLOR_RED,\"Fõadmin Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 3333) { SendClientMessage(playerid,COLOR_RED,\"Mapper Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"N/A\"); } if(PlayerInfo[playerid][Admin] >= 5555) { SendClientMessage(playerid,COLOR_RED,\"SCRIPTER Parancsai\"); SendClientMessage(playerid,COLOR_INFO,\"/resi, /adminszint\"); } } else { nemvagyadmin } return 1; } //==================================================================================================== //=========================================== uj.VIP! ============================================ //==================================================================================================== //==================================================================================================== //=========================================== uj.SEGÍTÕ! ========================================= //==================================================================================================== CMD:kick(playerid, params[]) { new id, indok[128]; if(sscanf(params,\"us\", id,indok)) return SendClientMessage(playerid, COLOR_INFO,\"Használat: /kick \"); if(IsPlayerConnected(id)) { if(PlayerInfo[playerid][Admin] >= 2) { new adminneve[MAX_PLAYER_NAME],kickeltneve[MAX_PLAYER_NAME],uzenet[128]; GetPlayerName(playerid,adminneve,sizeof(adminneve)); GetPlayerName(id,kickeltneve,sizeof(kickeltneve)); format(uzenet,sizeof(uzenet),\"Kick: %s ki lett rúgva %s által! Oka: %s\",kickeltneve,adminneve,indok); SendClientMessageToAll(COLOR_INFO, uzenet); PlayerInfo[id][Kickek] ++; NKick(id); } else{nemvagyadmin} } else { SendClientMessage(playerid, COLOR_RED, \"A játékos nem elérhetõ!\"); } return 1; } //==================================================================================================== //=========================================== uj.MODERÁTOR! ====================================== //==================================================================================================== //==================================================================================================== //=========================================== uj.admin! ========================================== //==================================================================================================== //==================================================================================================== //=========================================== uj.foadmin! ======================================== //==================================================================================================== //==================================================================================================== //=========================================== uj.mapper! ========================================= //==================================================================================================== //==================================================================================================== //=========================================== uj.scripter! ======================================= //==================================================================================================== CMD:adminszint(playerid, params[]) { new ujadmin, adminszint; if(sscanf(params,\"ui\", ujadmin,adminszint)) return SendClientMessage(playerid, COLOR_INFO,\"Használat: /adminszint \"); if(PlayerInfo[playerid][Admin] == 5555 || IsPlayerAdmin(playerid)) { if(IsPlayerConnected(ujadmin)) { if(adminszint < 0 || adminszint > 5) { SendClientMessage(playerid,COLOR_INFO, \"Az adminszint 0-5-ig terjed!\"); } else { new adoneve[MAX_PLAYER_NAME], kaponeve[MAX_PLAYER_NAME], rangneve[30]; if(adminszint == 0) {rangneve = \"Játékos\";} if(adminszint == 1) {rangneve = \"V.I.P\";} if(adminszint == 2) {rangneve = \"Segítõ\";} if(adminszint == 3) {rangneve = \"Moderátor\";} if(adminszint == 4) {rangneve = \"Adminisztrátor\";} if(adminszint == 5) {rangneve = \"Fõ-Adminisztrátor\";} new adouz[128],kapouz[128]; GetPlayerName(playerid,adoneve,sizeof(adoneve)); GetPlayerName(ujadmin, kaponeve,sizeof(kaponeve)); format(kapouz,sizeof(kapouz),\"%s megváltoztatta %s-re (%i ) a rangodat!\",adoneve,rangneve,adminszint); format(adouz,sizeof(adouz), \"Megváltoztattad %s rangját %s-re(%i)!\", kaponeve, rangneve, adminszint); SendClientMessage(playerid,COLOR_TURKTIZ,adouz); SendClientMessage(ujadmin, COLOR_TURKTIZ,kapouz); PlayerInfo[ujadmin][Admin] = adminszint; } } else{SendClientMessage(playerid, COLOR_RED, \"A játékos nem elérhetõ!\");} } else{nemvagyadmin} return 1; } CMD:gmx(playerid, params[]) { if(PlayerInfo[playerid][Admin] == 5555 || IsPlayerAdmin(playerid)) { new indok[50]; if(sscanf(params,\"s\", indok)) return SendClientMessage(playerid, COLOR_INFO,\"Használat: /resi \"); new nev[MAX_PLAYER_NAME],uzenet[128]; GetPlayerName(playerid,nev,sizeof(nev)); format(uzenet,sizeof(uzenet),\"Szerver: %s újraindította a szervert! Indok: %s\", nev,indok); SendClientMessageToAll(COLOR_RED,uzenet); SendRconCommand(\"gmx\"); } else {nemvagyadmin} return 1; } //==================================================================================================== //=========================================== !ALIAS! =========================================== //==================================================================================================== CMD:resi(playerid, params[]){return cmd_gmx(playerid,params);} CMD:stats(playerid){return cmd_statisztika(playerid);} public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5) { if(IsPlayerConnected(playerid)) { new Float:posx, Float:posy, Float:posz; new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))) { GetPlayerPos(i, posx, posy, posz); tempposx = (oldposx -posx); tempposy = (oldposy -posy); tempposz = (oldposz -posz); if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) // If the player is within 16 meters { SendClientMessage(i, col1, string); } else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) // within 8 meters { SendClientMessage(i, col2, string); } else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) //4 meters { SendClientMessage(i, col3, string); } else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) //2 meters { SendClientMessage(i, col4, string); } else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) //1 meter { SendClientMessage(i, col5, string); } } else { SendClientMessage(i, col1, string); } } } return 1; } // Adminszintek: 0) Játékos, 1) V.I.P, 2) Segítõ, 3) Moderátor, 4)Admin, 5) Fõadmin, 3333) Mapper, 5555) Scripter
29
« Dátum: 2013. október 27. - 12:21:08 »
Nekem valamiért runtime error, még nem jöttem rá mi az isten okozhatja..
30
« Dátum: 2013. október 06. - 18:46:05 »
Kiirály Köszi ment a + (Pedig énis rákerestem a randomID-re és nemtalált semmit na mind1 Köszi)
Oldalak: 1 [2] 3 4 ... 10
|