AvestX 5 Odesláno: 21. Listopad, 2009 Share Odesláno: 21. Listopad, 2009 Čau, nevíte jak udělat že nastoupim do auta jako spolujezdec ? Potřebuju to na autobus, že když k botovi do autobusu vztoupim vyberu kam chci odvést. Link to comment Share on other sites More sharing options...
0 kiwi 0 Odesláno: 22. Listopad, 2009 Share Odesláno: 22. Listopad, 2009 Já jsem s pawnem začal teprve před 2 týdny. Umím už nějaké drobnosti, ale raději se je učím zlepšovat Link to comment Share on other sites More sharing options...
0 tbx 7 Odesláno: 22. Listopad, 2009 Share Odesláno: 22. Listopad, 2009 i za týden by jsi měl vedet ze když tma má napsaný public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) ... tak se to asi nebude dávat do OnGameModeInit() .. ale do public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) :-) Link to comment Share on other sites More sharing options...
0 kiwi 0 Odesláno: 22. Listopad, 2009 Share Odesláno: 22. Listopad, 2009 No jo, ale když mám např. Realnou zemi, tak jak to mám dát do modu, když je to jen v AMX Link to comment Share on other sites More sharing options...
0 tbx 7 Odesláno: 22. Listopad, 2009 Share Odesláno: 22. Listopad, 2009 to tam nedáš protoze AMX neotevres protoze na 100% tam ma ATomas AntiDeAMX... a i tak . Není vám to trapný pořát mít na serveru RZE ? nikdo vám tam nepřijde a jak by se vám líbilo kdyby jste delale třeba 3mesíce mód (nebo i déle) a pak to bylo na kazdym 3. ceskym serveru ?? ... Link to comment Share on other sites More sharing options...
0 kiwi 0 Odesláno: 22. Listopad, 2009 Share Odesláno: 22. Listopad, 2009 Já ještě na vlastná mod nemám zkušenosti. Link to comment Share on other sites More sharing options...
0 AvestX 5 Odesláno: 1. Prosinec, 2009 Author Share Odesláno: 1. Prosinec, 2009 furt mi to nejde mam to: --> public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new model = GetVehicleModel(vehicleid); if(ispassenger != 0 && model == AutobusA) { if(GetPlayerMoney(playerid) < 5) { SendClientMessage(playerid, cervena, "[ MHD ]: Je mi líto, ale nemáš 5$."); TogglePlayerControllable(playerid,false); TogglePlayerControllable(playerid,true); } SendClientMessage(playerid, bila, "[ MHD ]: Vítej, cesta tě bude stát 5$."); GivePlayerMoney(playerid, -5); } Prostě když nastoupim jako spolujezdec nic se nestane Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 1. Prosinec, 2009 Share Odesláno: 1. Prosinec, 2009 if(ispassenger != 0 && model == AutobusA) myslis ze AutobusA myslis jako poradove cilo zejo? jinak kdyby si chtel autobus tak by si asi napsal primo cislo a nedefinoval ho do promene takze si toto zmas new model = GetVehicleModel(vehicleid); a prepis na if(ispassenger != 0 && vehicleid == AutobusA) nebo moznost if(ispassenger != 0 && vehicleid == 431) pro vsechny autobusy modelu 431 ty jak maji pruhlednou tu predni kabinu Link to comment Share on other sites More sharing options...
0 AvestX 5 Odesláno: 1. Prosinec, 2009 Author Share Odesláno: 1. Prosinec, 2009 Ale když mam v OnGameModeInt: AutobusA = CreateVehicle(431, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000); a nahoře AutobusA chci aby to fungovalo jen na to jistý auto jak mam označený :shifty: Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 1. Prosinec, 2009 Share Odesláno: 1. Prosinec, 2009 tak potom pouzij toto if(ispassenger != 0 && vehicleid == AutobusA) Link to comment Share on other sites More sharing options...
Dotaz
AvestX 5
Čau, nevíte jak udělat že nastoupim do auta jako spolujezdec ?
Potřebuju to na autobus, že když k botovi do autobusu vztoupim vyberu kam chci odvést.
Link to comment
Share on other sites
34 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