chytrak 14 Odesláno: 10. Září, 2008 Share Odesláno: 10. Září, 2008 Nahoru do modu #define RC_BANDIT 441 #define RC_BARON 464 #define RC_GOBLIN 501 #define RC_RAIDER 465 #define D_TRAM 449 #define RC_TANK 564 #define RC_CAM 594 Někam do modu public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_SECONDARY_ATTACK ) { if(!IsPlayerInAnyVehicle(playerid)) { new Float:x, Float:y, Float:z, vehicle; GetPlayerPos(playerid, x, y, z ); GetVehicleWithinDistance(playerid, x, y, z, 20.0, vehicle); if(IsVehicleRcTram(vehicle)) { PutPlayerInVehicle(playerid, vehicle, 0); } } else { new vehicleID = GetPlayerVehicleID(playerid); if(IsVehicleRcTram(vehicleID) || GetVehicleModel(vehicleID) == RC_CAM) { if(GetVehicleModel(vehicleID) != D_TRAM) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); SetPlayerPos(playerid, x+0.5, y, z+1.0); }}}}} GetVehicleWithinDistance( playerid, Float:x1, Float:y1, Float:z1, Float:dist, &veh) { for(new i = 1; i < MAX_VEHICLES; i++) { if(GetVehicleModel(i) > 0) { if(GetPlayerVehicleID(playerid) != i ) { new Float:x, Float:y, Float:z; new Float:x2, Float:y2, Float:z2; GetVehiclePos(i, x, y, z); x2 = x1 - x; y2 = y1 - y; z2 = z1 - z; new Float:vDist = (x2*x2+y2*y2+z2*z2); if( vDist < dist) { veh = i; dist = vDist; }}}}} IsVehicleRcTram( vehicleid ) { new model = GetVehicleModel(vehicleid); switch(model) { case D_TRAM, RC_GOBLIN, RC_BARON, RC_BANDIT, RC_RAIDER, RC_TANK: return 1; default: return 0; } return 0; } Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 14. Říjen, 2008 Share Odesláno: 14. Říjen, 2008 Nahoru do modu #define RC_BANDIT 441 #define RC_BARON 464 #define RC_GOBLIN 501 #define RC_RAIDER 465 #define D_TRAM 449 #define RC_TANK 564 #define RC_CAM 594 Někam do modu public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_SECONDARY_ATTACK ) { if(!IsPlayerInAnyVehicle(playerid)) { new Float:x, Float:y, Float:z, vehicle; GetPlayerPos(playerid, x, y, z ); GetVehicleWithinDistance(playerid, x, y, z, 20.0, vehicle); if(IsVehicleRcTram(vehicle)) { PutPlayerInVehicle(playerid, vehicle, 0); } } else { new vehicleID = GetPlayerVehicleID(playerid); if(IsVehicleRcTram(vehicleID) || GetVehicleModel(vehicleID) == RC_CAM) { if(GetVehicleModel(vehicleID) != D_TRAM) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); SetPlayerPos(playerid, x+0.5, y, z+1.0); }}}}} GetVehicleWithinDistance( playerid, Float:x1, Float:y1, Float:z1, Float:dist, &veh) { for(new i = 1; i < MAX_VEHICLES; i++) { if(GetVehicleModel(i) > 0) { if(GetPlayerVehicleID(playerid) != i ) { new Float:x, Float:y, Float:z; new Float:x2, Float:y2, Float:z2; GetVehiclePos(i, x, y, z); x2 = x1 - x; y2 = y1 - y; z2 = z1 - z; new Float:vDist = (x2*x2+y2*y2+z2*z2); if( vDist < dist) { veh = i; dist = vDist; }}}}} IsVehicleRcTram( vehicleid ) { new model = GetVehicleModel(vehicleid); switch(model) { case D_TRAM, RC_GOBLIN, RC_BARON, RC_BANDIT, RC_RAIDER, RC_TANK: return 1; default: return 0; } return 0; } Udělej tut jak vložit tramvaj nebo vlak do modu Link to comment Share on other sites More sharing options...
chytrak 14 Odesláno: 14. Říjen, 2008 Author Share Odesláno: 14. Říjen, 2008 mno dej si to do modu a pres exisu dej /ecar tram 1 1 Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 14. Říjen, 2008 Share Odesláno: 14. Říjen, 2008 mno dej si to do modu a pres exisu dej /v tram 1 1 Já vubec neim jak to myslíš Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 14. Říjen, 2008 Share Odesláno: 14. Říjen, 2008 mno dej si to do modu a pres exisu dej /v tram 1 1 Já vubec neim jak to myslíš Pro to na to udělej TuT Link to comment Share on other sites More sharing options...
chytrak 14 Odesláno: 14. Říjen, 2008 Author Share Odesláno: 14. Říjen, 2008 Prvni kroky je dat si do modu exis a nastavit si level pak se prihlasit.. az todle budes mit tak rekni... Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 14. Říjen, 2008 Share Odesláno: 14. Říjen, 2008 Prvni kroky je dat si do modu exis a nastavit si level pak se prihlasit.. az todle budes mit tak rekni... Tohle už mám pul roku Link to comment Share on other sites More sharing options...
chytrak 14 Odesláno: 14. Říjen, 2008 Author Share Odesláno: 14. Říjen, 2008 tak bez ke kolejim a napis "/ecar tram 1 1" , ale musis mit v modu ten tut Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 14. Říjen, 2008 Share Odesláno: 14. Říjen, 2008 tak bez ke kolejim a napis "/ecar tram 1 1" , ale musis mit v modu ten tut a ještě něco za tím bude.. já to toiž tedkon delat nebudu Chci bejt na pawno.cz každou minutu. Chápeš! Prve tě to začne bavit. Pak se z toho začne vy vyjít závislost. Pak je to závislost. No pak se pawno stane poviností. Ale ted ted už to je práce. Proto mě to tady baví! Budu tady. Takže se na to vrhnu až zítra v 6:00 když tu nikdo není Link to comment Share on other sites More sharing options...
chytrak 14 Odesláno: 14. Říjen, 2008 Author Share Odesláno: 14. Říjen, 2008 lol > http://www.youtube.com/watch?v=cxOlKvvLXP8 She’s a maniac Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 14. Říjen, 2008 Share Odesláno: 14. Říjen, 2008 lol > http://www.youtube.com/watch?v=cxOlKvvLXP8" onclick="window.open(this.href);return false; She’s a maniac Ty náš chytrej spamere Link to comment Share on other sites More sharing options...
Daw3 0 Odesláno: 14. Říjen, 2008 Share Odesláno: 14. Říjen, 2008 začíná se mi líbit ten rudej nick Link to comment Share on other sites More sharing options...
Soliter 0 Odesláno: 26. Září, 2010 Share Odesláno: 26. Září, 2010 píše to error 010: invalid function or declaration co s tim Link to comment Share on other sites More sharing options...
Seky16 0 Odesláno: 26. Září, 2010 Share Odesláno: 26. Září, 2010 1.Co datum neříka ti to něco??Není to tak nahodou starší topic než 2 měsíce? 2.Co takle radek? Link to comment Share on other sites More sharing options...
Marwin37 5 Odesláno: 26. Září, 2010 Share Odesláno: 26. Září, 2010 1.Co datum neříka ti to něco??Není to tak nahodou starší topic než 2 měsíce?2.Co takle radek? naučte se oba číst 1) v pravidlech je že pokuď navod háže error tak to neplatí 2) musíš dát řadky ktere hažou error Link to comment Share on other sites More sharing options...
Soliter 0 Odesláno: 27. Září, 2010 Share Odesláno: 27. Září, 2010 hele ono nejde vystoupit z RC aut co mám dělat : ( Link to comment Share on other sites More sharing options...
Danny 37 Odesláno: 27. Září, 2010 Share Odesláno: 27. Září, 2010 jednoduchá nápoveda vipni hru Link to comment Share on other sites More sharing options...
Soliter 0 Odesláno: 27. Září, 2010 Share Odesláno: 27. Září, 2010 ?? Link to comment Share on other sites More sharing options...
Danny 37 Odesláno: 27. Září, 2010 Share Odesláno: 27. Září, 2010 ked ti nejde vistúpiť vypni hru nie? Link to comment Share on other sites More sharing options...
Soliter 0 Odesláno: 27. Září, 2010 Share Odesláno: 27. Září, 2010 nemá někdo kody dopavna na vystoupeni ?? Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 27. Září, 2010 Share Odesláno: 27. Září, 2010 ked ti nejde vistúpiť vypni hru nie? Si me pobavil, jak rika Fie help za vsechny prachy "lol" nemá někdo kody dopavna na vystoupeni ?? [w]RemovePlayerFromVehicle[/w] Link to comment Share on other sites More sharing options...
Marwin37 5 Odesláno: 27. Září, 2010 Share Odesláno: 27. Září, 2010 nemá někdo kody dopavna na vystoupeni ?? jestli máš v modu anti fall of bike tak budeš muset proměnou nastavit na 0 Link to comment Share on other sites More sharing options...
Rhytmo 0 Odesláno: 20. Listopad, 2010 Share Odesláno: 20. Listopad, 2010 tak bez ke kolejim a napis "/ecar tram 1 1" , ale musis mit v modu ten tut Prepac ze pisem do stareho topicu len ma dve veci zaujimaju. Takze ta "tramvaj" znamena asi električka. a 2. Ked dam prikaz /ecar tram 1 1 a sem pri kolajich tak mi to da presne na kolaje? Link to comment Share on other sites More sharing options...
Dress 3 Odesláno: 24. Únor, 2011 Share Odesláno: 24. Únor, 2011 Nahoru do modu #define RC_BANDIT 441 #define RC_BARON 464 #define RC_GOBLIN 501 #define RC_RAIDER 465 #define D_TRAM 449 #define RC_TANK 564 #define RC_CAM 594 Někam do modu public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_SECONDARY_ATTACK ) { if(!IsPlayerInAnyVehicle(playerid)) { new Float:x, Float:y, Float:z, vehicle; GetPlayerPos(playerid, x, y, z ); GetVehicleWithinDistance(playerid, x, y, z, 20.0, vehicle); if(IsVehicleRcTram(vehicle)) { PutPlayerInVehicle(playerid, vehicle, 0); } } else { new vehicleID = GetPlayerVehicleID(playerid); if(IsVehicleRcTram(vehicleID) || GetVehicleModel(vehicleID) == RC_CAM) { if(GetVehicleModel(vehicleID) != D_TRAM) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); SetPlayerPos(playerid, x+0.5, y, z+1.0); }}}}} GetVehicleWithinDistance( playerid, Float:x1, Float:y1, Float:z1, Float:dist, &veh) { for(new i = 1; i < MAX_VEHICLES; i++) { if(GetVehicleModel(i) > 0) { if(GetPlayerVehicleID(playerid) != i ) { new Float:x, Float:y, Float:z; new Float:x2, Float:y2, Float:z2; GetVehiclePos(i, x, y, z); x2 = x1 - x; y2 = y1 - y; z2 = z1 - z; new Float:vDist = (x2*x2+y2*y2+z2*z2); if( vDist < dist) { veh = i; dist = vDist; }}}}} IsVehicleRcTram( vehicleid ) { new model = GetVehicleModel(vehicleid); switch(model) { case D_TRAM, RC_GOBLIN, RC_BARON, RC_BANDIT, RC_RAIDER, RC_TANK: return 1; default: return 0; } return 0; } Udělej tut jak vložit tramvaj nebo vlak do modu postav nejake auto na koleje a pak jen zmen ID vozidla vlak nebo tramvaj se automaticky polozi na koleje Link to comment Share on other sites More sharing options...
Guest Odesláno: 24. Únor, 2011 Share Odesláno: 24. Únor, 2011 Udělej tut jak vložit tramvaj nebo vlak do modu postav nejake auto na koleje a pak jen zmen ID vozidla vlak nebo tramvaj se automaticky polozi na koleje DATUM CITOVANÉHO PŘÍSPĚVKU!!!!! 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