SwoBii 0 Odesláno: 23. Únor, 2012 Share Odesláno: 23. Únor, 2012 Čau . mám takovej problem když kliknu na licenci A tak mi to zavre dialog a nic se nedeje ? :-O to same i u ostatnich licencich a to mam dialogy ktere jeste v modu pouzite nemam :-O Nevite nekdo fakt bych to potreboval.. Tu je ten TUT : http://pawno.cz/post220350.html Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 23. Únor, 2012 Share Odesláno: 23. Únor, 2012 Radši sem dej celej script.(tvuj) Link to comment Share on other sites More sharing options...
0 SwoBii 0 Odesláno: 23. Únor, 2012 Author Share Odesláno: 23. Únor, 2012 #include #define IsPlayerInSphere(%0,%1,%2,%3,%4) IsPlayerInRangeOfPoint(%0,%4,%1,%2,%3) #define CP1 1 #define CP2 2 #define CP3 3 #define CP4 4 #define CP5 5 #define CP6 6 #define CP7 7 #define CP8 8 #define CP9 9 #define CP10 10 #define CP11 11 #define CP12 12 #define CP13 13 #define CP14 14 #define CP15 15 #define CP16 16 #define RA 810 #define RB 811 #define RC 812 #define RD 813 #pragma tabsize 0 new autoskola[MAX_PLAYERS]; new ridicakA[MAX_PLAYERS]; new ridicakB[MAX_PLAYERS]; new ridicakC[MAX_PLAYERS]; new ridicakD[MAX_PLAYERS]; new skolacar; new Probihajici_test; main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); CreatePickup(1581,1,1172.2183,1351.1498,10.9219); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { 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) { //============================================================================== switch(autoskola[playerid]) { case 1: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2047.6212,-78.2796,34.7413,7.0); autoskola[playerid] = CP2; } case 2: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2005.3059,-56.8318,34.7338,7.0); autoskola[playerid] = CP3; } case 3: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1991.8002,339.8998,34.5791,7.0); autoskola[playerid] = CP4; } case 4: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1841.8988,431.5120,16.5747,7.0); autoskola[playerid] = CP5; } case 5: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1894.5446,621.1358,34.5856,7.0); autoskola[playerid] = CP6; } case 6: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1881.6080,728.3354,44.8619,7.0); autoskola[playerid] = CP7; } case 7: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1562.1426,721.4111,6.6093,7.0); autoskola[playerid] = CP8; } case 8: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1767.8051,292.0031,7.6292,7.0); autoskola[playerid] = CP9; } case 9: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1801.7676,-136.0603,5.5814,7.0); autoskola[playerid] = CP10; } case 10: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-1835.6865,-575.9970,17.0811,7.0); autoskola[playerid] = CP11; } case 11: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2081.9424,-554.4229,30.7425,7.0); autoskola[playerid] = CP12; } case 12: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2249.0046,-366.8317,50.4334,7.0); autoskola[playerid] = CP13; } case 13: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.4321,-193.6637,34.7414,7.0); autoskola[playerid] = CP14; } case 14: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2156.5034,-74.1551,34.7439,7.0); autoskola[playerid] = CP15; } case 15: { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2048.8838,-83.5777,34.7101,7.0); autoskola[playerid] = CP16; } case 16: { Probihajici_test = 0;//nastavime probihajici test na 0 takže další hráč si může udělat řidičák DisablePlayerCheckpoint(playerid); //vypneme poslední CP //======================================================================= DestroyVehicle(skolacar);//zničíme auto ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Dostal si Ridicak typu D!\nNyní tě již policista nemůže pokutovat !","OK",""); //řekneme mu že dostal řidičák*/ if(ridicakA[playerid]==1) { //ak si na začiatku zvolil licenciu tipu A DestroyVehicle(skolacar); ShowPlayerDialog(playerid,RA,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Dostal si Ridicak typu A!\nNyní tě již policista nemůže pokutovat !","OK",""); } if(ridicakB[playerid]==1) { //tip B DestroyVehicle(skolacar); ShowPlayerDialog(playerid,RB,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Dostal si Ridicak typu B!\nNyní tě již policista nemůže pokutovat !","OK",""); } if(ridicakC[playerid]==1) {//tip C DestroyVehicle(skolacar); ShowPlayerDialog(playerid,RC,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Dostal si Ridicak typu C!\nNyní tě již policista nemůže pokutovat !","OK",""); } if(ridicakD[playerid]==1) {//tip D DestroyVehicle(skolacar); ShowPlayerDialog(playerid,RD,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Dostal si Ridicak typu D!\nNyní tě již policista nemůže pokutovat !","OK",""); }}} 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) { if(IsPlayerInSphere(playerid, 1172.2183,1351.1498,10.9219, 2)) //co zobrazí když vstoupí na pickup { ShowPlayerDialog(playerid,810,DIALOG_STYLE_LIST,"Autoškola","Řidičák A\nŘidičák B\nŘidičák C\nŘidičák D","Ano","Konec"); } 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 == 810) { if(response == 1) //když klikne na OK { if(listitem == 0) // kdyz si vybere první položku { if(Probihajici_test == 1) //když si nedělá řidičák někdo jiný { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Již jeden test probíhá ! Musíš počkat až spoluhráč test dokončí !","OK",""); //když ano zobrazíme dialog } else if(GetPlayerMoney(playerid) < 9999) //když nemá peníze { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Nemáš 10,000 $ $ !","OK",""); //zobrazíme mu dialog se zprávou } else if (ridicakA[playerid] == 1) //když už má řidičák typu A { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Už máš řidičák !","OK",""); } else //když splňuje podmínky { GivePlayerMoney(playerid,-10000); //vezmem mu peníze SendClientMessage(playerid,0x0000FFAA,"[ ! ] Projiždej Cheackpointy!"); //řekneme mu co má dělat SetPlayerCheckpoint(playerid,1006.0009,1372.0741,10.5471,7.0); //nastavíme checkpoint číslo 1 skolacar = CreateVehicle(405, 1155.5220,1371.1525,10.5672, 6.6187, random(100), random(100), 1000); //vytvoříme vozidlo (ID) a souřdnice kde se spawne PutPlayerInVehicle(playerid, skolacar,0); //a dáme ho do něj autoskola[playerid] = 2; //nastavíme CP proměnnou Probihajici_test = 1; //aby nemohli dělat test 2 ! ridicakA[playerid]=1; // pro ridicak typ A } } else if(listitem == 1) //kdyz si vybere druhou položku { if(Probihajici_test == 1) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Již jeden test probíhá ! Musíš počkat až spoluhráč test dokončí !","OK",""); } else if(GetPlayerMoney(playerid) < 14999) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Nemáš 15,000 $ $ !","OK",""); } else if (ridicakB[playerid] == 1) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Už máš řidičák !","OK",""); } else //když splňuje naše podmínky { GivePlayerMoney(playerid,-15000); SendClientMessage(playerid,0x0000FFAA,"[ ! ] Projiždej Cheackpointy!"); SetPlayerCheckpoint(playerid,1006.0009,1372.0741,10.5471,7.0); //nastavíme checkpoint číslo 1 skolacar = CreateVehicle(461, 1155.5220,1371.1525,10.5672, 6.6187, random(100), random(100), 1000); //vytvoříme auto PutPlayerInVehicle(playerid, skolacar,0); autoskola[playerid] = 2; Probihajici_test = 1; ridicakB[playerid]=1; //pro typ B } } else if(listitem == 2) { if(Probihajici_test == 1) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Již jeden test probíhá ! Musíš počkat až spoluhráč test dokončí !","OK",""); } else if(GetPlayerMoney(playerid) < 19999) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Nemáš 20,000 $ $ !","OK",""); } else if (ridicakC[playerid] == 1) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Už máš řidičák !","OK",""); } else { GivePlayerMoney(playerid,-20000); SendClientMessage(playerid,0x0000FFAA,"[ ! ] Projiždej Cheackpointy!"); SetPlayerCheckpoint(playerid,1006.0009,1372.0741,10.5471,7.0); skolacar = CreateVehicle(578, 1155.5220,1371.1525,10.5672, 6.6187, random(100), random(100), 1000); PutPlayerInVehicle(playerid, skolacar,0); autoskola[playerid] = 2; Probihajici_test = 1; ridicakC[playerid]=1; } } else if(listitem == 3) { if(Probihajici_test == 1) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Již jeden test probíhá ! Musíš počkat až spoluhráč test dokončí !","OK",""); } else if(GetPlayerMoney(playerid) < 24999) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Nemáš 25,000 $ $ !","OK",""); } else if (ridicakD[playerid] == 1) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Už máš řidičák !","OK",""); } else { GivePlayerMoney(playerid,-25000); SendClientMessage(playerid,0x0000FFAA,"[ ! ] Projiždej Cheackpointy!"); SetPlayerCheckpoint(playerid,1006.0009,1372.0741,10.5471,7.0); skolacar = CreateVehicle(431, 1155.5220,1371.1525,10.5672, 6.6187, random(100), random(100), 1000); PutPlayerInVehicle(playerid, skolacar,0); autoskola[playerid] = 2; Probihajici_test = 1; ridicakD[playerid]=1; } } } } return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; } Link to comment Share on other sites More sharing options...
0 Quiter 99 Odesláno: 23. Únor, 2012 Share Odesláno: 23. Únor, 2012 Myslím že chyba bude v tomto... else if(GetPlayerMoney(playerid) < 9999) { ShowPlayerDialog(playerid,000,DIALOG_STYLE_MSGBOX,"Řidičák","[ ! ] {FF0000}Nemáš 10,000 $ $ !","OK",""); } Za 1. Daj si tam 10000 a nie 9999 ! ( Nieje to až tak podstatné ale takto to môže aj keď má 9999 ) Za 2. Ono ti to ukáže ten dialog že nemáš peniaze ale ty stále stojíš na PICKUPE takže ti to vzápetí ukáže dialog s vodičákmi ! Takže buď si tam daj SCM alebo si sprav teleport. ( Po stupení na pickup ho portne kúsok pred pickup ) ( Otestoval som to ! ) Link to comment Share on other sites More sharing options...
0 SwoBii 0 Odesláno: 23. Únor, 2012 Author Share Odesláno: 23. Únor, 2012 Tak nic hele furt to dela to same :-( Link to comment Share on other sites More sharing options...
0 Quiter 99 Odesláno: 23. Únor, 2012 Share Odesláno: 23. Únor, 2012 A máš vôbec 10 000 $ na zaplatenie ? Link to comment Share on other sites More sharing options...
0 SwoBii 0 Odesláno: 23. Únor, 2012 Author Share Odesláno: 23. Únor, 2012 Samozrejme ze mam jinak by mi to napsalo ze ne :-( Link to comment Share on other sites More sharing options...
0 Quiter 99 Odesláno: 23. Únor, 2012 Share Odesláno: 23. Únor, 2012 A po zvolení vodičáku ti to zobrazí dialog s vodičákmi alebo to úplne nič nespraví ? Link to comment Share on other sites More sharing options...
0 SwoBii 0 Odesláno: 23. Únor, 2012 Author Share Odesláno: 23. Únor, 2012 Prijdu na pickup nabehne Dialog Na vybrani ridicak A,B,C,D vyberu treba A a zavre se an ic nedela a takto i u tech ostatnich Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 23. Únor, 2012 Share Odesláno: 23. Únor, 2012 OMG ... spoiler ti nic neříká? ... Link to comment Share on other sites More sharing options...
0 SwoBii 0 Odesláno: 23. Únor, 2012 Author Share Odesláno: 23. Únor, 2012 V tom tutorialu zadnej spoiler neni ? Nevim si vubec rady jestli vite tak napiste ja vubec nevim zkousel sem si to udelat ted uplne presne a i ty id dialogu a proste se to jen zavre an ic to nedela i kdyz mi to predtim fungovalo a ted uz proste ne nevim proc Link to comment Share on other sites More sharing options...
0 Quiter 99 Odesláno: 24. Únor, 2012 Share Odesláno: 24. Únor, 2012 V tom tutorialu zadnej spoiler neni ? Nevim si vubec rady jestli vite tak napiste ja vubec nevim zkousel sem si to udelat ted uplne presne a i ty id dialogu a proste se to jen zavre an ic to nedela i kdyz mi to predtim fungovalo a ted uz proste ne nevim proc Spoiler je toto : Používa sa napísaním do chatu [ spoiler ] Text [ /spoiler ]. Ale v tých [] nedávaj meszery ! Alebo keď píšeš stlač hore tlačítko spoiler Niesom si istý či to má nejaký vpliv ale možno tam máš príliš mnoho dialogov. Prípadne ti to tam niečo returnuje alebo dačo podobné... Link to comment Share on other sites More sharing options...
0 SwoBii 0 Odesláno: 24. Únor, 2012 Author Share Odesláno: 24. Únor, 2012 To jde jako prehnat to z dialogama ? Link to comment Share on other sites More sharing options...
0 Roox 1 Odesláno: 24. Únor, 2012 Share Odesláno: 24. Únor, 2012 Být tebou, tak pro začátek bych se naučil dělat s returnama a celkově předělat systém podmínek, tohle je úplně k ničemu, nepřehledné a zabírá to prostor.. Navíc se pak může stát, že tě to pustí jen s určitou hodnotou.. Link to comment Share on other sites More sharing options...
0 SwoBii 0 Odesláno: 24. Únor, 2012 Author Share Odesláno: 24. Únor, 2012 Jo ale on mi fungoval pak sem restartnul server a najednou nejdee ? :-O Link to comment Share on other sites More sharing options...
Dotaz
SwoBii 0
Čau . mám takovej problem když kliknu na licenci A tak mi to zavre dialog a nic se nedeje ? :-O to same i u ostatnich licencich a to mam dialogy ktere jeste v modu pouzite nemam :-O
Nevite nekdo fakt bych to potreboval..
Tu je ten TUT :
Link to comment
Share on other sites
14 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now