michalpta 0 Odesláno: 9. Prosinec, 2015 Share Odesláno: 9. Prosinec, 2015 Dobrý den, Chtěl bych na server NPC train(aby vlak jezdil mezi mesty sam) a zrůzných návodů na internetu to vytváření nemůžu pochopit a chtěl bych tedy tento FS udělat. Vím že musí být NPC record atd... ale SA-MP Hraju 5 a neco let a nikdy jsem ty NPC nepochopil . Tak prosím o pomoc Děkuji...... Link to comment Share on other sites More sharing options...
Amenadiel 286 Odesláno: 9. Prosinec, 2015 Share Odesláno: 9. Prosinec, 2015 (upraveno) http://forum.sa-mp.com/showthread.php?t=101341 edit* nemá samp server v npc modes tu nahrávku ? pokud j tak jednoduše připoj npc http://wiki.sa-mp.com/wiki/NPC:ConnectNPC Edited 9. Prosinec, 2015 by Steam Wallet Link to comment Share on other sites More sharing options...
michalpta 0 Odesláno: 9. Prosinec, 2015 Author Share Odesláno: 9. Prosinec, 2015 Jo moc díky a můžu se jen tak zeptat jdou stahnout npc nahravky lidi aby chodili po ulicich kdyz by se zabili vypadli by z nich prachy atd...Ale to by asi bylo velmi složité nebo ani nereálné nwm. Link to comment Share on other sites More sharing options...
Amenadiel 286 Odesláno: 9. Prosinec, 2015 Share Odesláno: 9. Prosinec, 2015 Jo moc díky a můžu se jen tak zeptat jdou stahnout npc nahravky lidi aby chodili po ulicich kdyz by se zabili vypadli by z nich prachy atd...Ale to by asi bylo velmi složité nebo ani nereálné nwm. pokud myslíš zabít npc tak to nejde. npc nemá život. (no lifer) ne joke u npc bys musel kontrolovat jestli donej hráč střilí a ubírat hpčka z proměné a pak jenom dát animaci smrti. Link to comment Share on other sites More sharing options...
The hidden face 77 Odesláno: 9. Prosinec, 2015 Share Odesláno: 9. Prosinec, 2015 Šlo by to, ovšem ne přeš standardní npc. Je na to plugin. Všechny funkce máš vypsané v top tématu, na které jsem tě odkázal a na konci má video. Pokud si ale nepochopil normální npc, tak fcnpc asi nepochopíš taky. Link to comment Share on other sites More sharing options...
michalpta 0 Odesláno: 9. Prosinec, 2015 Author Share Odesláno: 9. Prosinec, 2015 http://forum.sa-mp.com/showthread.php?t=101341 toto nefunguje ale kdyz chci pripojit normalni tam je train sf,ls,lv a já chci , abyjezdil do vsech mest Link to comment Share on other sites More sharing options...
Amenadiel 286 Odesláno: 9. Prosinec, 2015 Share Odesláno: 9. Prosinec, 2015 toto nefunguje ale kdyz chci pripojit normalni tam je train sf,ls,lv a já chci , abyjezdil do vsech mest myslíš tramvaj? Link to comment Share on other sites More sharing options...
michalpta 0 Odesláno: 9. Prosinec, 2015 Author Share Odesláno: 9. Prosinec, 2015 Ne tam jsou recordings train_sf_to_lv1.rec train_lv_to_ls1.rec train_ls_to_sf1.rec a ja na to chci jeden rec. Link to comment Share on other sites More sharing options...
Amenadiel 286 Odesláno: 9. Prosinec, 2015 Share Odesláno: 9. Prosinec, 2015 Ne tam jsou recordings a ja na to chci jeden rec. jeden rec je jedna nahravka pro npc. a mám takový pocit že nedáš víc nahravek do jednoho rec. fakt nevím ale myslím si že ne. Link to comment Share on other sites More sharing options...
michalpta 0 Odesláno: 9. Prosinec, 2015 Author Share Odesláno: 9. Prosinec, 2015 např. něco takového mají na RŽ vlak zastavuje vsude bez bugu normal Link to comment Share on other sites More sharing options...
Amenadiel 286 Odesláno: 9. Prosinec, 2015 Share Odesláno: 9. Prosinec, 2015 např. něco takového mají na RŽ vlak zastavuje vsude bez bugu normal tak budeš muset se naučit je nahravat.. http://pawno.cz/topic/24256-jak-vytvorit-npc-preklad-ze-sa-mp-fora/ Link to comment Share on other sites More sharing options...
michalpta 0 Odesláno: 9. Prosinec, 2015 Author Share Odesláno: 9. Prosinec, 2015 Všechno jsem udělal ale pri testu jsem neuspel Link to comment Share on other sites More sharing options...
ATomas 290 Odesláno: 10. Prosinec, 2015 Share Odesláno: 10. Prosinec, 2015 (upraveno) stahni si win svr ze sa-mp.com tam uz je npc co jezdi mezi mesty hotovy staci jen nacist FS... Edited 10. Prosinec, 2015 by ATomas Link to comment Share on other sites More sharing options...
michalpta 0 Odesláno: 10. Prosinec, 2015 Author Share Odesláno: 10. Prosinec, 2015 jake fs to přesně je ? Link to comment Share on other sites More sharing options...
The hidden face 77 Odesláno: 10. Prosinec, 2015 Share Odesláno: 10. Prosinec, 2015 (upraveno) gl_npcs a připojí to tyto npcčka: ConnectNPC("TrainDriverLV","train_lv"); ConnectNPC("TrainDriverLS","train_ls"); ConnectNPC("TrainDriverSF","train_sf"); ConnectNPC("PilotLV","at400_lv"); ConnectNPC("PilotSF","at400_sf"); ConnectNPC("PilotLS","at400_ls"); Edited 10. Prosinec, 2015 by GaRGoyLeS Link to comment Share on other sites More sharing options...
michalpta 0 Odesláno: 10. Prosinec, 2015 Author Share Odesláno: 10. Prosinec, 2015 j už jsem se takydival v pawnu hmm na tratich jezdi elegy a vrtulnik,ve vzduchu lita infernus......... co to sakra je Link to comment Share on other sites More sharing options...
The hidden face 77 Odesláno: 10. Prosinec, 2015 Share Odesláno: 10. Prosinec, 2015 //Dáváš ty npc třeba do vozidla s id 1 což u tebe na serveru může bejt klidně elegy //řešení je jednoduché: vytvoř si 3 vlaky a 2 letadla a pak tam ty npcčka putni //např.: //new VlakSF = CreateVehicle(...) //PutPlayerInVehicle(playerid, VlakSF, 0); //pouze to změň níže: public OnPlayerSpawn(playerid) { if(!IsPlayerNPC(playerid)) return 1; // We only deal with NPC players in this script new playername[64]; GetPlayerName(playerid,playername,64); if(!strcmp(playername,"TrainDriverLV",true)) { PutPlayerInVehicle(playerid,1,0); SetPlayerColor(playerid,0xFFFFFFFF); } else if(!strcmp(playername,"TrainDriverSF",true)) { PutPlayerInVehicle(playerid,5,0); SetPlayerColor(playerid,0xFFFFFFFF); } else if(!strcmp(playername,"TrainDriverLS",true)) { PutPlayerInVehicle(playerid,9,0); SetPlayerColor(playerid,0xFFFFFFFF); } else if(!strcmp(playername,"PilotLV",true)) { PutPlayerInVehicle(playerid,13,0); SetPlayerColor(playerid,0xFFFFFFFF); } else if(!strcmp(playername,"PilotSF",true)) { PutPlayerInVehicle(playerid,14,0); SetPlayerColor(playerid,0xFFFFFFFF); } else if(!strcmp(playername,"PilotLS",true)) { PutPlayerInVehicle(playerid,15,0); SetPlayerColor(playerid,0xFFFFFFFF); } return 1; } Link to comment Share on other sites More sharing options...
michalpta 0 Odesláno: 11. Prosinec, 2015 Author Share Odesláno: 11. Prosinec, 2015 uz je mi to jasnejsi pořád mi to nejde Link to comment Share on other sites More sharing options...
The hidden face 77 Odesláno: 11. Prosinec, 2015 Share Odesláno: 11. Prosinec, 2015 Buď konkrétnější, co ti nejde? Link to comment Share on other sites More sharing options...
michalpta 0 Odesláno: 11. Prosinec, 2015 Author Share Odesláno: 11. Prosinec, 2015 no nastavim to id a porad tam jezdi to coo nema ted tam jezdi motorka a lita infernus Link to comment Share on other sites More sharing options...
The hidden face 77 Odesláno: 11. Prosinec, 2015 Share Odesláno: 11. Prosinec, 2015 Tak jsem prosím tě dej kód, kde vytváříš ty auta a kde dáváš ty npcčka do aut... Link to comment Share on other sites More sharing options...
Nawyus 2 Odesláno: 6. Leden, 2016 Share Odesláno: 6. Leden, 2016 Vytvoří vozidlo new vozidlo; public OnGameModeInit() { print("my gamemode"); ConnectNPC("jmeno bota","název souboru"); vozidlo = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); return 1; } Vložíš bota do auta public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(!strcmp(npcname, "jmenobota", true)) { PutPlayerInVehicle(playerid, vozidlo, 0); } } return 1; } Omlouvám se že to není jak by mělo ale nudim se ve škole a prohledávám na mobilu pawno Link to comment Share on other sites More sharing options...
Polisek Polismanovic 76 Odesláno: 6. Leden, 2016 Share Odesláno: 6. Leden, 2016 Zdravím a jak si psal stím zabijením NPC. Sice psali FNPC který je trošku lepší ale zas RNPC by měl fungovat i po updatech sampu. Ale můžu ti poradit includ RNPC. Výhoda v jednom s posledních novinek je že nemusíš nahrávat žádné NPC. Vytvoří se bez nahrávky. Trošku si prostuduj toto: Plugin a Includ Informace o funkcích 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