undertaker 10 Odesláno: 5. Červenec, 2010 Share Odesláno: 5. Červenec, 2010 Pokud chcete udelat branu ktera se otevre kdyz napisete heslo tak potom pokracujte ve cteni tohoto navodu. Jak na to: Nejdrive vlozime pod #include tohle: #define COLOR_GREEN 0x33AA33AA new dvere; forward zavritdvere(playerid); potom do OnGameModeInit dame: public OnGameModeInit() { dvere = CreateObject(2634, 1068.5549316406, 2408.431640625, 12.622353553772, 0, 0, 179.57434082031); - = vytvorime nejakou branu v MTA souradnice si snad umite zkonvertovat return 1; } potom do OnPlayerCommandText dame: public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/dvere", cmdtext, true, 10) == 0) { //zde si muzete dat nejake podminky jeste napr. IsPlayerInSphere apod. ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Heslo:","Zadej heslo:","OK","Zavrit");//ukaze hraci dialog return 1; } return 0; } potom do public OnDialogResponse dame: public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) //Pokud ID Dialogu je 1 { if(response == 1) //Pokud je zmacknuto prvni tlacitko (2 je druhe) { if(strval(inputtext)==123654){//pokud je text v dialogu roven 123654 to 123654 si muzete zmenit na nejake jine cisla SendClientMessage(playerid,COLOR_GREEN,"Dvere otevreny na 5s!"); MoveObject(dvere,1068.5549316406, 2408.431640625, 9,5); SetTimerEx("zavritdvere",5000,0,"i",playerid);//za 5s se zavrou dvere }else{//kdyz napise blbe heslo tak mu to napise Spatne heslo! SendClientMessage(playerid,COLOR_GREEN,"Spatne heslo!"); } } } } a nakonec nekam dolu do FS,modu public zavritdvere(playerid) { MoveObject(dvere,1068.5549316406, 2408.431640625, 12.622353553772,5);//zavreni dveri return 1; } Link to comment Share on other sites More sharing options...
Mregg 0 Odesláno: 5. Červenec, 2010 Share Odesláno: 5. Červenec, 2010 n1ce 9/10 Link to comment Share on other sites More sharing options...
Ozi 1 Odesláno: 5. Červenec, 2010 Share Odesláno: 5. Červenec, 2010 Good tut ale asi už jsem slepej. Nevídím kde je ten settimerex zakončený (kill timer) Link to comment Share on other sites More sharing options...
Guest Odesláno: 5. Červenec, 2010 Share Odesláno: 5. Červenec, 2010 načo killtimer ? ked je timer nastavený na to že po obnovení publicu sa neopakuje SetTimerEx("zavritdvere",5000,0,"i",playerid); // 0 = false ak pri timery je 0 (false) tak sa timer neopakuje, preto nepotrebuje killtimer dakujem že si sa zase niečo naučil Link to comment Share on other sites More sharing options...
Guest [*LoNg*]LiFe Odesláno: 5. Červenec, 2010 Share Odesláno: 5. Červenec, 2010 okey berem spet neprecital som si cely tut:) Link to comment Share on other sites More sharing options...
hospoda96 31 Odesláno: 6. Červenec, 2010 Share Odesláno: 6. Červenec, 2010 díky to se mi hodi 100/100 :thumbup: Link to comment Share on other sites More sharing options...
Guest Odesláno: 6. Červenec, 2010 Share Odesláno: 6. Červenec, 2010 ale je to iba na čísla... na písmená aj čísla je to takto if(strcmp(inputtext, "heslo", true) == 0) { moveobject.... return 1; } v spoilery je ukážka public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) //Pokud ID Dialogu je 1 { if(response == 1) //Pokud je zmacknuto prvni tlacitko (2 je druhe) { if(strcmp(inputtext, "heslo", true) == 0) {//ide hoci čo SendClientMessage(playerid,COLOR_GREEN,"Dvere otevreny na 5s!"); MoveObject(dvere,1068.5549316406, 2408.431640625, 9,5); SetTimerEx("zavritdvere",5000,0,"i",playerid);//za 5s se zavrou dvere }else{//kdyz napise blbe heslo tak mu to napise Spatne heslo! SendClientMessage(playerid,COLOR_GREEN,"Spatne heslo!"); } } } } Link to comment Share on other sites More sharing options...
MrBeNy 0 Odesláno: 8. Červenec, 2010 Share Odesláno: 8. Červenec, 2010 Zajimavy TuT 8/10 ;-) Link to comment Share on other sites More sharing options...
BuLLeT 0 Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Jak mám prosím zkonvertovat ty souřadnice ? Jsem nováček.. Link to comment Share on other sites More sharing options...
undertaker 10 Odesláno: 13. Srpen, 2010 Author Share Odesláno: 13. Srpen, 2010 http://gtamap.delux-host.com/converter/ Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Jak mám prosím zkonvertovat ty souřadnice ? Jsem nováček.. Ty uz me taky ne$er http://pawno.cz/search.php?keywords=MTA+%3D%3E+PWN&terms=all&author=Davidekpc&sc=1&sf=all&sk=t&sd=d&sr=posts&st=0&ch=300&t=0&submit=Hledat Link to comment Share on other sites More sharing options...
BuLLeT 0 Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Sorry,že mám tak debilní otázky,ale co z toho ? Nebo spíše by se mi bodl návod. Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Sorry,že mám tak debilní otázky,ale co z toho ? Nebo spíše by se mi bodl návod. TAK CO TAKHLE KLIKNOUT NA MUJ ODKAZ A TAM NAJIT TEN NÁVOD????????????????????? Link to comment Share on other sites More sharing options...
7.TiX 0 Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Kua dyt v tym odkaze jsou samy navody dpč uz mne seres Link to comment Share on other sites More sharing options...
BuLLeT 0 Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Naučte se psát,pak pičujte. Link to comment Share on other sites More sharing options...
7.TiX 0 Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Uz mne stves vole ten odkaz ktery ti poslal Davidekpc klikni nanho a tam mas kupu navodu staci jen KLIK! Link to comment Share on other sites More sharing options...
Guest Etnies Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 http://www.convertffs.com/ Link to comment Share on other sites More sharing options...
7.TiX 0 Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Jakože proč jsi to tu napsal dyt to je konvertor zbytecny spam Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 http://www.convertffs.com/ No on kdyby se podival na ten odkaz tak by dostal presne tuhle odpoved, ale tim ze mu to sem hodis tak ho jen podporujes v tom aby nehledal a spolehal se na ostatni. Link to comment Share on other sites More sharing options...
Guest Etnies Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Jak mám prosím zkonvertovat ty souřadnice ? Jsem nováček.. dal jsem ten konvertor pro BuLLeTa Link to comment Share on other sites More sharing options...
7.TiX 0 Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 dyt jo ale davidkepc ma pravdu ted jse bude zpolihat na druhy ze mu vse vysvetli a udelaji Link to comment Share on other sites More sharing options...
BuLLeT 0 Odesláno: 13. Srpen, 2010 Share Odesláno: 13. Srpen, 2010 Udělal jsem to přesně podle návodu a hodilo mi to několik Warningu a Erroru.. Link to comment Share on other sites More sharing options...
Guest dajmon Odesláno: 14. Srpen, 2010 Share Odesláno: 14. Srpen, 2010 pekne to mi pomohlo minule som to tu daval ako HELP Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 14. Srpen, 2010 Share Odesláno: 14. Srpen, 2010 Celkem dobrý Link to comment Share on other sites More sharing options...
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