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 - justrics
Oldalak: 1 ... 8 9 [10] 11
136
« Dátum: 2012. szeptember 27. - 12:20:42 »
Köszönöm a gyors választ! Igen a randomot azt ki akartam cserélni csak gondoltam eredeti állapotába illesztem be a kódot!
137
« Dátum: 2012. szeptember 27. - 10:06:56 »
Sziasztok! Írtam egy parancsot minden rendben van vele lefut ahogyan terveztem. Viszont az volna kérdésem, hogy tudnátok-e abban segíteni, hogy a sima cp-et egymás után rakosgassa le. Itt van a parancs: CMD:tisztit(playerid) { if(GetPlayerTeam(playerid) != Civil) { SendClientMessage(playerid, SZURKE, \"Nem vagy civil!\"); return 1; } { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 413) { new randomize; randomize = random(sizeof(gSweeperPoints)); SetPlayerCheckpoint(playerid, gSweeperPoints[randomize][0], gSweeperPoints[randomize][1], gSweeperPoints[randomize][2], 5.0); SendClientMessage(playerid, FEHER, \"Szedd fel a checkpointokat!\"); }else{ SendClientMessage(playerid,PIROS,\"Nem ülsz tisztító kocsiban!\"); return 1; } } return 1; }
138
« Dátum: 2012. szeptember 22. - 11:16:31 »
Igen kiraktam mert nem új szervert akarok csinálni hanem csak hobbiból pawnozok valamint, hogy jobban megismerjem és használni tudjam...
139
« Dátum: 2012. szeptember 20. - 16:43:31 »
Rendben, értem most már köszi szépen még tudnátok egy picit segíteni? Hogyan adjam szerelõ skinnek a parancsot? Beszúrom az egészet, hogy mirõl van szó. Ha nehéz vagy bonyolult akkor nem kell! /******************************************************************************* * SERVER NAME: TDM * SERVER VERSION: Mode v1.0 * SERVER DEVELOPER: Just * * INFORMATION: * *******************************************************************************/ //INCLUDEOK//==================================================================== #include <a_samp> #include <fixchars.h> #include <zcmd> #include <sscanf> #include <YSI\\y_ini> #include <dudb> //Path & options #define AUTOLOGIN //Delete this line if you don\'t want autologin #define PATH \"/Users/%s.ini\" //This is the path template #define REGISTERED_MONEY 5000 //How much money registered users get #define DIALOG_REGISTER 999 //Register dialog ID, feel free to modfiy #define DIALOG_LOGIN 998 //Login dialog ID, feel free to modfiy //SZÍNEK//==================================================================== #define SZURKE 0xAFAFAFAA #define LILA 0xC2A2DAAA #define FEHER 0xFFFFFFAA #define SKEK 0x2641FEAA #define KEK 0x33AAFFFF #define ZOLD 0x33AA33AA #define NARANCS 0xFF9900AA #define PINK 0xFF69B4FF #define VZOLD 0x08FD04FF #define CYAN 0x00FFFFAA #define PIROS 0xFF3366FF #define CSARGA 0xFFCC33FF #define SZOLD 0x008000FF #define SPIROS 0x800000FF #define FEKETE 0x000000FF //CSAPAT//==================================================================== #define Groove 1 #define Rendor 2 #define Civil 3 #define Szerelo 4 #define GrooveColor KEK #define RendorColor LILA #define CivilColor CSARGA #define SzereloColor PIROS //NEW változók//============================================================== enum iDetails { //Enumerating player data Pass, Cash, Score, Banned }; new pInfo[MAX_PLAYERS][iDetails]; //Player data variable new pIP[MAX_PLAYERS][16]; //For autologin new pLogged[MAX_PLAYERS]; stock PlayerPath(playerid) { //This will give us faster access to a player\'s path new iStr[256],name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); format(iStr,sizeof(iStr),PATH,name); return iStr; } //ret_memcpy #pragma unused ret_memcpy //EGYÉB DEFINEOK//============================================================ #if defined FILTERSCRIPT public OnFilterScriptInit() { print(\"\\n--------------------------------------\"); print(\" Blank Filterscript by your name here\"); print(\"--------------------------------------\\n\"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print(\"\\n----------------------------------\"); print(\" Just dm szervere akar lenni.\"); print(\"----------------------------------\\n\"); } #endif public OnGameModeInit() { //JÁRMÛVEK// AddStaticVehicle(551,879.20001221,-2175.30004883,52.70000076,0.00000000,-1,-1); //Merit AddStaticVehicle(551,900.79998779,-2211.60009766,52.70000076,0.00000000,-1,-1); //Merit AddStaticVehicle(551,866.70001221,-2178.00000000,52.70000076,0.00000000,-1,-1); //Merit AddStaticVehicle(551,879.09997559,-2192.00000000,52.70000076,0.00000000,-1,-1); //Merit AddStaticVehicle(551,900.70001221,-2201.60009766,52.90000153,0.00000000,-1,-1); //Merit AddStaticVehicle(551,879.09997559,-2184.30004883,52.70000076,0.00000000,-1,-1); //Merit AddStaticVehicle(551,866.79998779,-2187.80004883,52.70000076,0.00000000,-1,-1); //Merit AddStaticVehicle(551,866.90002441,-2196.50000000,52.70000076,0.00000000,-1,-1); //Merit AddStaticVehicle(551,900.79998779,-2192.30004883,52.70000076,0.00000000,-1,-1); //Merit AddStaticVehicle(548,961.90002441,-2215.00000000,57.59999847,0.00000000,-1,-1); //Cargobob AddStaticVehicle(548,940.20001221,-2215.50000000,57.59999847,0.00000000,-1,-1); //Cargobob AddStaticVehicle(413,830.40002441,-2198.39990234,52.90000153,270.00000000,-1,-1); //Pony AddStaticVehicle(413,830.59997559,-2191.89990234,52.90000153,270.00000000,-1,-1); //Pony AddStaticVehicle(413,830.50000000,-2185.69995117,52.90000153,270.00000000,-1,-1); //Pony AddStaticVehicle(413,830.50000000,-2179.10009766,52.90000153,270.00000000,-1,-1); //Pony AddStaticVehicle(413,830.29998779,-2204.69995117,52.90000153,270.00000000,-1,-1); //Pony AddStaticVehicle(525,1089.00000000,-1749.00000000,13.39999962,0.00000000,-1,-1); //Tow Truck AddStaticVehicle(525,1093.40002441,-1749.00000000,13.39999962,0.00000000,-1,-1); //Tow Truck AddStaticVehicle(525,1097.59997559,-1749.00000000,13.39999962,0.00000000,-1,-1); //Tow Truck AddStaticVehicle(474,2499.60009766,-1680.09997559,13.30000019,20.00000000,16,1); //Hermes AddStaticVehicle(474,2493.30004883,-1681.09997559,13.19999981,0.00000000,16,1); //Hermes AddStaticVehicle(474,2487.80004883,-1681.00000000,13.19999981,0.00000000,16,1); //Hermes AddStaticVehicle(414,2499.10009766,-1653.09997559,13.60000038,256.00000000,86,1); //Mule AddStaticVehicle(418,2480.10009766,-1654.69995117,13.50000000,139.99987793,86,1); //Moonbeam AddStaticVehicle(418,2484.60009766,-1655.00000000,13.50000000,139.99877930,86,87); //Moonbeam AddStaticVehicle(596,1583.30004883,-1710.59997559,5.69999981,0.00000000,6,6); //Police Car (LSPD) AddStaticVehicle(596,1588.00000000,-1710.69995117,5.69999981,0.00000000,34,35); //Police Car (LSPD) AddStaticVehicle(596,1592.19995117,-1710.59997559,5.69999981,0.00000000,126,126); //Police Car (LSPD) AddStaticVehicle(601,1559.30004883,-1710.19995117,5.80000019,0.00000000,-1,-1); //S.W.A.T. Van AddStaticVehicle(601,1565.00000000,-1710.69995117,5.80000019,0.00000000,-1,-1); //S.W.A.T. Van AddStaticVehicle(601,1570.40002441,-1711.00000000,5.80000019,0.00000000,114,1); //S.W.A.T. Van AddStaticVehicle(601,1553.59997559,-1710.09997559,6.09999990,0.00000000,-1,-1); //S.W.A.T. Van AddStaticVehicle(528,1603.69995117,-1689.50000000,6.09999990,0.00000000,-1,-1); //FBI Truck AddStaticVehicle(528,1603.80004883,-1696.80004883,6.09999990,0.00000000,-1,-1); //FBI Truck AddStaticVehicle(528,1603.80004883,-1704.50000000,6.09999990,0.00000000,-1,-1); //FBI Truck AddStaticVehicle(596,1578.59997559,-1710.40002441,5.69999981,0.00000000,86,86); //Police Car (LSPD) AddStaticVehicle(596,1570.90002441,-1693.90002441,5.69999981,0.00000000,1,1); //Police Car (LSPD) AddStaticVehicle(596,1566.80004883,-1694.09997559,5.69999981,0.00000000,104,102); //Police Car (LSPD) AddStaticVehicle(596,1562.59997559,-1694.00000000,5.69999981,0.00000000,22,22); //Police Car (LSPD) AddStaticVehicle(596,1558.19995117,-1694.09997559,5.69999981,0.00000000,79,79); //Police Car (LSPD) AddStaticVehicle(427,1539.50000000,-1646.40002441,6.09999990,178.00000000,-1,-1); //Enforcer AddStaticVehicle(427,1534.59997559,-1646.00000000,6.09999990,177.99499512,-1,-1); //Enforcer AddStaticVehicle(427,1529.69995117,-1646.09997559,6.09999990,177.99499512,-1,93); //Enforcer AddStaticVehicle(497,1554.59997559,-1612.80004883,13.60000038,180.00000000,44,1); //Police Maverick AddStaticVehicle(497,1568.69995117,-1612.90002441,13.60000038,180.00000000,44,1); //Police Maverick AddStaticVehicle(571,1896.59997559,-2314.19995117,12.89999962,272.00000000,-1,-1); //Kart AddStaticVehicle(571,1896.80004883,-2317.00000000,12.89999962,272.00000000,-1,-1); //Kart AddStaticVehicle(571,1893.40002441,-2317.19995117,12.89999962,271.99951172,-1,-1); //Kart AddStaticVehicle(571,1893.30004883,-2314.19995117,12.89999962,271.99951172,-1,-1); //Kart AddStaticVehicle(571,1889.09997559,-2314.19995117,12.89999962,271.99951172,-1,-1); //Kart AddStaticVehicle(571,1889.40002441,-2317.39990234,12.89999962,271.99951172,-1,-1); //Kart AddStaticVehicle(571,1893.40002441,-2319.50000000,12.89999962,271.99951172,-1,-1); //Kart AddStaticVehicle(571,1896.90002441,-2319.19995117,12.89999962,271.99951172,-1,-1); //Kart //OBJECTEK// CreateObject(18074,895.79998779,-1670.00000000,53.40000153,0.00000000,0.00000000,272.00000000); //object(donut_rail) (1) CreateObject(4553,836.50000000,-2107.39990234,29.50000000,0.00000000,340.00000000,270.00000000); //object(road12_lan2) (1) CreateObject(8420,863.90002441,-2186.69995117,51.79999924,0.00000000,0.00000000,270.00000000); //object(arprtcrprk04_lvs) (1) CreateObject(3069,845.90002441,-2147.00000000,52.00000000,0.00000000,0.00000000,0.00000000); //object(d9_ramp) (1) CreateObject(4874,934.09997559,-2217.69995117,55.20000076,0.00000000,0.00000000,182.00000000); //object(helipad1_las) (1) CreateObject(16409,1093.89941406,-1758.59960938,12.10000038,0.00000000,0.00000000,0.00000000); //object(by_weehangr) (1) CreateObject(16409,1094.00000000,-1772.19921875,12.10000038,0.00000000,0.00000000,0.00000000); //object(by_weehangr) (2) CreateObject(1337,1083.72558594,-1750.80761719,13.32418060,0.00000000,0.00000000,0.00000000); //object(binnt07_la) (1) CreateObject(966,1066.50000000,-1756.00000000,12.39999962,0.00000000,0.00000000,90.00000000); //object(bar_gatebar01) (1) CreateObject(966,1065.50000000,-1776.30004883,12.30000019,0.00000000,0.00000000,270.00000000); //object(bar_gatebar01) (2) CreateObject(968,1065.50000000,-1776.30004883,13.10000038,0.00000000,0.00000000,270.00000000); //object(barrierturn) (1) CreateObject(968,1066.50000000,-1755.90002441,13.19999981,0.00000000,0.00000000,270.00000000); //object(barrierturn) (2) CreateObject(970,1099.59997559,-1750.59997559,12.89999962,0.00000000,0.00000000,272.00000000); //object(fencesmallb) (1) CreateObject(970,1099.50000000,-1747.80004883,12.89999962,0.00000000,0.00000000,271.99951172); //object(fencesmallb) (2) CreateObject(3578,1081.30004883,-1763.80004883,13.10000038,0.00000000,0.00000000,0.00000000); //object(dockbarr1_la) (1) CreateObject(3578,1081.09997559,-1768.80004883,13.10000038,0.00000000,0.00000000,0.00000000); //object(dockbarr1_la) (2) CreateObject(3578,1070.80004883,-1768.80004883,13.10000038,0.00000000,0.00000000,0.00000000); //object(dockbarr1_la) (3) CreateObject(3578,1071.09997559,-1763.80004883,13.19999981,0.00000000,0.00000000,0.00000000); //object(dockbarr1_la) (4) CreateObject(3578,1081.69995117,-1755.19995117,13.19999981,0.00000000,0.00000000,0.00000000); //object(dockbarr1_la) (5) CreateObject(3578,1071.50000000,-1755.19995117,13.19999981,0.00000000,0.00000000,0.00000000); //object(dockbarr1_la) (6) CreateObject(3578,1081.00000000,-1777.19995117,13.30000019,0.00000000,0.00000000,0.00000000); //object(dockbarr1_la) (7) CreateObject(3578,1070.69995117,-1777.19995117,13.30000019,0.00000000,0.00000000,0.00000000); //object(dockbarr1_la) ( CreateObject(3578,1062.09997559,-1765.19995117,13.19999981,0.00000000,0.00000000,198.00000000); //object(dockbarr1_la) (9) CreateObject(3578,1062.30004883,-1767.69995117,13.19999981,0.00000000,0.00000000,167.99560547); //object(dockbarr1_la) (10) CreateObject(16337,1067.69995117,-1754.40002441,12.39999962,0.00000000,0.00000000,0.00000000); //object(des_cranecontrol) (1) CreateObject(16337,1066.69995117,-1778.00000000,12.50000000,0.00000000,0.00000000,0.00000000); //object(des_cranecontrol) (2) CreateObject(3593,2462.69995117,-1663.90002441,12.69999981,0.00000000,252.00000000,324.00000000); //object(la_fuckcar2) (1) CreateObject(3593,2462.10009766,-1652.09997559,13.00000000,0.00000000,105.99993896,26.00000000); //object(la_fuckcar2) (2) CreateObject(3593,2461.30004883,-1656.30004883,12.30000019,0.00000000,28.00000000,328.00000000); //object(la_fuckcar2) (3) CreateObject(3867,2450.39990234,-1670.59997559,27.50000000,0.00000000,0.00000000,38.00000000); //object(ws_scaffolding_sfx) (1) CreateObject(3399,2515.80004883,-1677.09997559,15.69999981,0.00000000,350.00000000,0.00000000); //object(cxrf_a51_stairs) (1) CreateObject(3399,2463.50000000,-1665.09997559,14.80000019,0.00000000,357.99694824,180.00000000); //object(cxrf_a51_stairs) (2) CreateObject(3593,2474.39990234,-1655.59997559,13.00000000,0.00000000,36.00000000,355.99786377); //object(la_fuckcar2) (4) CreateObject(973,1899.69995117,-2328.19995117,13.39999962,0.00000000,0.00000000,276.00000000); //object(sub_roadbarrier) (1) CreateObject(973,1900.69995117,-2337.60009766,13.39999962,0.00000000,0.00000000,275.99853516); //object(sub_roadbarrier) (2) CreateObject(973,1902.50000000,-2346.89990234,13.39999962,0.00000000,0.00000000,285.99853516); //object(sub_roadbarrier) (3) CreateObject(973,1906.40002441,-2355.69995117,13.39999962,0.00000000,0.00000000,303.99609375); //object(sub_roadbarrier) (4) CreateObject(973,1912.30004883,-2363.19995117,13.39999962,0.00000000,0.00000000,311.99169922); //object(sub_roadbarrier) (5) CreateObject(973,1899.00000000,-2289.50000000,13.39999962,0.00000000,0.00000000,267.98474121); //object(sub_roadbarrier) ( CreateObject(973,1900.50000000,-2280.10009766,13.39999962,0.00000000,0.00000000,255.98400879); //object(sub_roadbarrier) (9) CreateObject(973,1904.09997559,-2271.30004883,13.39999962,0.00000000,0.00000000,239.98144531); //object(sub_roadbarrier) (10) CreateObject(973,1910.90002441,-2265.19995117,13.39999962,0.00000000,0.00000000,203.97985840); //object(sub_roadbarrier) (11) CreateObject(973,1920.09997559,-2262.50000000,13.39999962,0.00000000,0.00000000,187.97766113); //object(sub_roadbarrier) (12) CreateObject(973,1929.40002441,-2263.69995117,13.39999962,0.00000000,0.00000000,157.97607422); //object(sub_roadbarrier) (13) CreateObject(973,1937.90002441,-2268.00000000,13.39999962,0.00000000,0.00000000,147.97241211); //object(sub_roadbarrier) (14) CreateObject(973,1944.59997559,-2274.50000000,13.39999962,0.00000000,0.00000000,123.96936035); //object(sub_roadbarrier) (15) CreateObject(973,1948.59997559,-2283.10009766,13.39999962,0.00000000,0.00000000,105.96423340); //object(sub_roadbarrier) (16) CreateObject(973,1950.80004883,-2290.00000000,13.39999962,0.00000000,0.00000000,107.96203613); //object(sub_roadbarrier) (17) CreateObject(973,1955.30004883,-2343.89990234,13.39999962,0.00000000,0.00000000,79.94543457); //object(sub_roadbarrier) (31) CreateObject(973,1948.19995117,-2314.69995117,13.39999962,0.00000000,0.00000000,271.93774414); //object(sub_roadbarrier) (35) CreateObject(973,1951.30004883,-2352.50000000,13.39999962,0.00000000,0.00000000,47.93627930); //object(sub_roadbarrier) (36) CreateObject(3069,1951.40002441,-2309.69995117,12.10000038,13.00000000,0.00000000,182.00000000); //object(d9_ramp) (2) CreateObject(973,1956.00000000,-2334.39990234,13.39999962,0.00000000,0.00000000,89.94201660); //object(sub_roadbarrier) (37) CreateObject(973,1955.69995117,-2324.60009766,13.39999962,0.00000000,0.00000000,91.93957520); //object(sub_roadbarrier) (38) CreateObject(973,1955.19995117,-2315.10009766,13.39999962,0.00000000,0.00000000,93.93957520); //object(sub_roadbarrier) (39) CreateObject(973,1954.69995117,-2305.80004883,13.39999962,0.00000000,0.00000000,91.93908691); //object(sub_roadbarrier) (40) CreateObject(973,1953.09997559,-2296.69995117,13.39999962,0.00000000,0.00000000,107.93811035); //object(sub_roadbarrier) (41) CreateObject(973,1944.59997559,-2359.10009766,13.39999962,0.00000000,0.00000000,39.93334961); //object(sub_roadbarrier) (42) CreateObject(973,1936.80004883,-2364.30004883,13.39999962,0.00000000,0.00000000,27.92980957); //object(sub_roadbarrier) (43) CreateObject(973,1928.00000000,-2367.10009766,13.39999962,0.00000000,0.00000000,5.92724609); //object(sub_roadbarrier) (44) CreateObject(973,1919.40002441,-2366.89990234,13.39999962,0.00000000,0.00000000,349.92712402); //object(sub_roadbarrier) (45) CreateObject(973,1947.90002441,-2324.00000000,13.39999962,0.00000000,0.00000000,263.93359375); //object(sub_roadbarrier) (46) CreateObject(973,1946.50000000,-2333.00000000,13.39999962,0.00000000,0.00000000,259.93359375); //object(sub_roadbarrier) (47) CreateObject(973,1943.00000000,-2341.30004883,13.39999962,0.00000000,0.00000000,233.93103027); //object(sub_roadbarrier) (48) CreateObject(973,1939.09997559,-2349.60009766,13.39999962,0.00000000,0.00000000,255.92639160); //object(sub_roadbarrier) (49) CreateObject(973,1934.90002441,-2357.60009766,13.39999962,0.00000000,0.00000000,227.92102051); //object(sub_roadbarrier) (50) CreateObject(973,1927.19995117,-2359.80004883,13.39999962,0.00000000,0.00000000,165.91687012); //object(sub_roadbarrier) (51) CreateObject(973,1919.30004883,-2355.60009766,13.39999962,0.00000000,0.00000000,137.91552734); //object(sub_roadbarrier) (52) CreateObject(973,1914.50000000,-2348.30004883,13.39999962,0.00000000,0.00000000,109.91137695); //object(sub_roadbarrier) (53) CreateObject(973,1912.30004883,-2339.19995117,13.39999962,0.00000000,0.00000000,97.90722656); //object(sub_roadbarrier) (54) CreateObject(973,1911.19995117,-2329.80004883,13.39999962,0.00000000,0.00000000,95.90466309); //object(sub_roadbarrier) (55) CreateObject(973,1910.50000000,-2320.39990234,13.39999962,0.00000000,0.00000000,91.89965820); //object(sub_roadbarrier) (56) CreateObject(973,1910.30004883,-2311.00000000,13.39999962,0.00000000,0.00000000,89.89514160); //object(sub_roadbarrier) (57) CreateObject(973,1910.30004883,-2301.50000000,13.39999962,0.00000000,0.00000000,89.89013672); //object(sub_roadbarrier) (58) CreateObject(973,1910.40002441,-2292.10009766,13.39999962,0.00000000,0.00000000,89.89013672); //object(sub_roadbarrier) (59) CreateObject(973,1910.19995117,-2282.60009766,13.39999962,0.00000000,0.00000000,89.89013672); //object(sub_roadbarrier) (60) CreateObject(973,1914.00000000,-2275.60009766,13.39999962,0.00000000,0.00000000,35.89013672); //object(sub_roadbarrier) (61) CreateObject(973,1922.19995117,-2271.39990234,13.39999962,0.00000000,0.00000000,17.88684082); //object(sub_roadbarrier) (62) CreateObject(973,1929.59997559,-2273.39990234,13.39999962,0.00000000,0.00000000,311.88574219); //object(sub_roadbarrier) (63) CreateObject(973,1936.59997559,-2280.00000000,13.39999962,0.00000000,0.00000000,323.88537598); //object(sub_roadbarrier) (64) CreateObject(973,1941.40002441,-2287.50000000,13.39999962,0.00000000,0.00000000,281.88244629); //object(sub_roadbarrier) (65) CreateObject(973,1943.59997559,-2296.69995117,13.39999962,0.00000000,0.00000000,285.88171387); //object(sub_roadbarrier) (66) CreateObject(973,1946.40002441,-2305.60009766,13.39999962,0.00000000,0.00000000,289.88073730); //object(sub_roadbarrier) (67) CreateObject(1503,1904.80004883,-2336.39990234,12.50000000,0.00000000,0.00000000,4.00000000); //object(dyn_ramp) (1) CreateObject(1503,1902.09997559,-2336.50000000,12.50000000,0.00000000,0.00000000,1.99902344); //object(dyn_ramp) (2) CreateObject(16409,1891.19995117,-2318.30004883,12.50000000,0.00000000,0.00000000,184.00000000); //object(by_weehangr) (3) CreateObject(973,1898.30004883,-2305.30004883,13.39999962,0.00000000,0.00000000,267.98400879); //object(sub_roadbarrier) (68) CreateObject(973,1898.69995117,-2297.69995117,13.39999962,0.00000000,0.00000000,267.98400879); //object(sub_roadbarrier) (69) //EGYÉB BEÁLLÍTÁSOK// SetGameModeText(\"TDM\"); DisableInteriorEnterExits(); UsePlayerPedAnims(); Create3DTextLabel(\"Szerelõmûhely\\n Javításért használd a /javít.\\n(10.000$)\",ZOLD,1092.0858,-1759.2483,13.0840,40,0,1); //KARAKTEREK// AddPlayerClass(28, 2512.5291,-1671.7675,13.4941, 269.1425, 0, 0, 0, 0, 0, 0); //groove AddPlayerClass(282, 1546.6661,-1675.5879,13.5628, 269.1425, 0, 0, 0, 0, 0, 0); //rendor AddPlayerClass(60, 846.5576,-2167.6704,52.9797, 269.1425, 0, 0, 0, 0, 0, 0); //civil AddPlayerClass(56, 846.5576,-2167.6704,52.9797, 269.1425, 0, 0, 0, 0, 0, 0); //civil AddPlayerClass(51, 846.5576,-2167.6704,52.9797, 269.1425, 0, 0, 0, 0, 0, 0); //civil AddPlayerClass(40, 846.5576,-2167.6704,52.9797, 269.1425, 0, 0, 0, 0, 0, 0); //civil AddPlayerClass(8, 1092.0858,-1759.2483,13.0840, 269.1425, 0, 0, 0, 0, 0, 0); //szerelõ return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 2512.5291,-1671.7675,13.4941); SetPlayerCameraPos(playerid, 2508.5398,-1670.8857,13.3812); SetPlayerCameraLookAt(playerid, 2512.5291,-1671.7675,13.4941); SetPlayerFacingAngle(playerid, 89.6908); //return 1; switch(classid) { case 0: { SetPlayerTeam(playerid, Groove); GameTextForPlayer(playerid, \"~g~Geooveos\",1000,3); } case 1: { SetPlayerTeam(playerid, Rendor); GameTextForPlayer(playerid, \"~b~Rendõr\",1000,3); } case 2: { SetPlayerTeam(playerid, Civil); GameTextForPlayer(playerid, \"~y~Civil\",1000,5); } case 3: { SetPlayerTeam(playerid, Szerelo); GameTextForPlayer(playerid, \"~r~Szerelõ\",1000,3); } } { if(pLogged[playerid] == 0) return SendClientMessage(playerid,CSARGA,\"Spawnolás elõtt regisztrálj!\"); return 1; } } public OnPlayerConnect(playerid) { pLogged[playerid] = 0; #if defined AUTOLOGIN new tmpIP[16]; GetPlayerIp(playerid,tmpIP,sizeof(tmpIP)); //Getting IP #endif if(fexist(PlayerPath(playerid))) { INI_ParseFile(PlayerPath(playerid), \"UserDataLoad_%s\", .bExtra = true, .extra = playerid); //Calling loading callback #if defined AUTOLOGIN if(strcmp(tmpIP,pIP[playerid],true) == 0) { //Checking if the IPs match pLogged[playerid] = 1; SetPlayerScore(playerid,pInfo[playerid][score]); GivePlayerMoney(playerid,pInfo[playerid][Cash]); SendClientMessage(playerid,PINK,\"Autómatikusan beléptél [iP match]\"); return 1; } #endif ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,\"Belép\",\"Add meg a jelszavadat elõbb.\",\"Login\",\"Leave\"); } else { ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,\"Regisztráció\",\"Elõbb regisztrál!.\",\"Register\",\"Leave\"); } return 1; } forward UserDataLoad_data(playerid,name[],value[]); public UserDataLoad_data(playerid,name[],value[]) { //This loads the settings from the INI file INI_Int(\"Pass\",pInfo[playerid][Pass]); INI_String(\"IP\",pIP[playerid],16); //INI_Int(\"Admin\",pInfo[playerid][Admin]); INI_Int(\"Cash\",pInfo[playerid][Cash]); INI_Int(\"Score\",pInfo[playerid][score]); INI_Int(\"Banned\",pInfo[playerid][banned]); return 1; } public OnPlayerDisconnect(playerid, reason) { if(pLogged[playerid] == 1) { new INI:iFile = INI_Open(PlayerPath(playerid)); INI_SetTag(iFile,\"data\"); INI_WriteInt(iFile,\"Cash\",GetPlayerMoney(playerid)); INI_WriteInt(iFile,\"Score\",GetPlayerScore(playerid)); INI_Close(iFile); } pLogged[playerid] = 0; return 1; } public OnPlayerSpawn(playerid) { if(GetPlayerTeam(playerid) == Groove) { SetPlayerColor(playerid, GrooveColor); } else if(GetPlayerTeam(playerid) ==Rendor) { SetPlayerColor(playerid, RendorColor); } else if(GetPlayerTeam(playerid) ==Civil) { SetPlayerColor(playerid, CivilColor); } else if(GetPlayerTeam(playerid) ==Szerelo) { SetPlayerColor(playerid, SzereloColor); } return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/mycommand\", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_REGISTER) { GetPlayerIp(playerid,pIP[playerid],16); if(!response) Kick(playerid); if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,\"Regisztráció\",\"Add meg a jelszavadat kérlek.\",\"Regisztrál\",\"Mégsem\"); new INI:iFile = INI_Open(PlayerPath(playerid)); //Making the INI file and writing settings INI_SetTag(iFile,\"data\"); INI_WriteInt(iFile,\"Pass\",udb_hash(inputtext)); #if defined AUTOLOGIN INI_WriteString(iFile,\"IP\",pIP[playerid]); #endif INI_WriteInt(iFile,\"Cash\",REGISTERED_MONEY); INI_WriteInt(iFile,\"Score\",0); INI_Close(iFile); pLogged[playerid] = 1; new iStr[128]; format(iStr,sizeof(iStr),\"Sikeresen regisztráltál a következõ jelszóval: \\\"%s\\\".\",inputtext); SendClientMessage(playerid,CSARGA,iStr); return 1; } if(dialogid == DIALOG_LOGIN) { if(!response) Kick(playerid); new iStr[128],gTries; if(gTries == 0) gTries = 1; if(gTries == 3) { // 3 tries = kick new pName[30]; GetPlayerName(playerid,pName,sizeof(pName)); format(iStr,sizeof(iStr),\"%s kirugtunk mert elrontottad a jelszavad 3-szor is!\",pName); SendClientMessageToAll(PIROS,iStr); return Kick(playerid); } if(!strlen(inputtext)) { format(iStr,sizeof(iStr),\"Add meg a jelszavad kérlek. Próbálkozások: %i/3\",gTries); return ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,\"Belép\",iStr,\"Belép\",\"Mégsem\"); } if(udb_hash(inputtext) == pInfo[playerid][Pass]) { pLogged[playerid] = 1; SendClientMessage(playerid,ZOLD,\"Sikeresen beléptél.\"); SetPlayerScore(playerid,pInfo[playerid][score]); //Loading player score GivePlayerMoney(playerid,pInfo[playerid][Cash]); //Loading player money } else { format(iStr,sizeof(iStr),\"Rossz jelszó. Próbálkozások: %i/3\",gTries); ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,\"Regisztráció\",iStr,\"Belép\",\"Mégsem\"); gTries++; return 1; } } return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; } //PARANCSOK//======================================================= CMD:help(playerid,params[]) { SendClientMessage(playerid,ZOLD,\"/fegyver--(fegyvertvehetsz) /ahelp--(autószerelõ segítség)\"); return 1; } CMD:javit(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid,5,1092.0858,-1759.2483,13.0840)) { new vehicleid=GetPlayerVehicleID(vehicleid); SetVehicleHealth(vehicleid, 1000.0); RepairVehicle(vehicleid); SendClientMessage(playerid,ZOLD, \"Sikeresen megjavítottad!\"); }else{ SendClientMessage(playerid,PIROS, \"Nem vagy mûhelyben!\"); SetPlayerCheckpoint(playerid,1092.0858,-1759.2483,13.0840,3); } return 1; }
140
« Dátum: 2012. szeptember 20. - 16:21:58 »
Mert a zcmd-hez azt én is tudom, mindenhol úgy van írva. Köszönöm egyébként a sok segítséget hálás vagyok! Dupla hozzászólás automatikusan összefûzve. ( 2012. szeptember 20. - 16:27:00 )
if(IsPlayerInRangeOfPoint(playerid,5,1092.0858,-1759.2483,13.0840)) ez volt a gond egyébként mert én így írtam: if IsPlayerInRangeOfPoint(playerid,5,1092.0858,-1759.2483,13.0840)
141
« Dátum: 2012. szeptember 20. - 15:28:22 »
Nem jó arra is azt a hibát adja ki! Mármint Flahse nek üzenem. És ennél a sornál jelöli: if IsPlayerInRangeOfPoint(playerid,5,1092.0858,-1759.2483,13.0840) { Egészen pontosan a {-jel után Dupla hozzászólás automatikusan összefûzve. ( 2012. szeptember 20. - 15:32:57 )
Skillz megírtam ahogyan mondtad de a rangeofpoint után lévõ {-jel nél lévõ sorban ezt a hibát adja: C:\\Documents and Settings\\Rikk\\Asztal\\DM\\gamemodes\\dm.pwn(587) : error 001: expected token: \"*then\", but found \"{\"
142
« Dátum: 2012. szeptember 20. - 15:22:14 »
Köszönöm a segítséget de még mindig nem jó. CMD:javit(playerid,params[]) { if IsPlayerInRangeOfPoint(playerid,5,1092.0858,-1759.2483,13.0840) { SendClientMessage(playerid,ZOLD, \"Sikeresen megjavítottad a kocsid!\"); new vehicleid=GetPlayerVehicleID(vehicleid); RepairVehicle(vehicleid); return 1; } { SendClientMessage(playerid,PIROS, \"Nem vagy mûhelyben!\"); SetPlayerCheckpoint(playerid,1092.0858,-1759.2483,13.0840,3); return 1; } } Nem tudom mit jelent ez a hiba már volt ilyenem de akkor kitudtam javítani most egyáltalán nem tudom: C:\\Documents and Settings\\Rikk\\Asztal\\DM\\gamemodes\\dm.pwn(588) : error 001: expected token: \"*then\", but found \"{\"
143
« Dátum: 2012. szeptember 20. - 15:08:28 »
Banyek télleg köszi a megvilágosítást! Viszont így is valami gubanc van csak most ez: C:\\Documents and Settings\\Rikk\\Asztal\\DM\\gamemodes\\dm.pwn(589) : error 001: expected token: \"*then\", but found \"-identifier-\" C:\\Documents and Settings\\Rikk\\Asztal\\DM\\gamemodes\\dm.pwn(592) : error 029: invalid expression, assumed zero
144
« Dátum: 2012. szeptember 20. - 15:01:53 »
Tudnátok nekem segíteni, hogy mi baj lehet az alábbi kóddal? CMD:javit(playerid) { { if IsPlayerInRangeOfPoint(playerid,5,1092.0858,-1759.2483,13.0840) SendClientMessage(playerid,ZOLD, \"Sikeresen megjavítottad!\"); new vehicleid=GetPlayerVehicleID(vehicleid); RepairVehicle(vehicleid); }else{ SendClientMessage(playerid,PIROS, \"Nem vagy mûhelyben!\"); SetPlayerCheckpoint(playerid,1092.0858,-1759.2483,13.0840,3); return 1; } } Ezt írja hibának: C:\\Documents and Settings\\Rikk\\Asztal\\DM\\gamemodes\\dm.pwn(589) : error 001: expected token: \"*then\", but found \"-identifier-\" C:\\Documents and Settings\\Rikk\\Asztal\\DM\\gamemodes\\dm.pwn(592) : error 029: invalid expression, assumed zero
145
« Dátum: 2012. szeptember 13. - 19:24:34 »
Köszi most próbálom! Na sikerült, azonban a teszt folyamán nem veszi fel a cp-t Barátnõmet megkértem nézze meg, elvitte õ is neki meg minden oké volt. Ez mi lehet? Többi kérdésemre meg még várok. Illetve eszembe jutott még egy, ugye pótkocsis kamionról van szó, azt hogy lehet megoldani, hogy leismerje, hogy nincs a pótkocsi felcsatolva?
146
« Dátum: 2012. szeptember 13. - 19:01:40 »
Sziasztok! Csináltam egy kamionos mód-ot és több célpont van ahova el kell vinni az árút. Viszont azt akarom, hogy külön fizessen a különbözõ cp-k ért. Ez, hogyan lehet megoldani? Valamint még egy kérdés az eszembe jutott, hogy mikor kiválasztja az úti célt, akkor utána ne lehessen újra kiválasztani, csak azután miután leadta az árút. Ebben segítsetek létszíves, ha tudtok. Elõre is köszönöm mindenkinek.
147
« Dátum: 2012. szeptember 11. - 16:30:06 »
Sziasztok! Szeretnék kérni tõletek, egy teljesen egyszerû alap pl pizzás scriptet. Én írtam egyett csak valamiért nem jó, és megszeretnék nézni egy mûködõt, hogy pl.: beáll egy pickupba akkor elkezdi a munkát és aztán ha pizzás motorra szál akkor random cp-ket tesz le(azt én megtudom határozni). Vagy egy teljesen egyszerû úttisztítós is jó! Elõre is köszönöm!
148
« Dátum: 2012. szeptember 11. - 15:02:13 »
Sehogyan sem tudom megoldani, az átrakást, átrakom a parancs alá de akkor nem veszi fel és csak a másodikat jeleníti meg. Tud valaki segíteni? Elõre is köszönöm.
149
« Dátum: 2012. szeptember 10. - 19:18:30 »
Abban még tudnál segíteni, hogy a modomban alap üzletek vannak bent amiket sárga háromszögek jeleznek és belehet menni. Hogyan tudom azokat kitörölni?
150
« Dátum: 2012. szeptember 10. - 15:45:35 »
Köszönöm. Átraktam azonban, most nem az elsõt hanem a másodikat jeleníti meg és nem veszi fel. Meg még azt, hogyan oldhatom meg, hogy felveszem a munkát csak akkor lehessen elkezdeni a /tisztit parancsot?
Oldalak: 1 ... 8 9 [10] 11
|