FrOsTy14 4 Odesláno: 5. Prosinec, 2014 Share Odesláno: 5. Prosinec, 2014 Zdravím chtěl bych se zeptat jak nastavit tento kod a co k čemu slouží potřeboval bych aby se ta brana posunula dolu a tam stala jede to ke mě a nezastaví to. { if(strcmp(cmdtext, "/otevrit", true) == 0) { new string[50]; new movetime = MoveObject(brana, 0, 10, 0, 2.00); format(string, sizeof(string), "Brána je otevřena", movetime); SendClientMessage(playerid, 0xFF000000, string); return 1; } return 0; } Link to comment Share on other sites More sharing options...
Matess 36 Odesláno: 5. Prosinec, 2014 Share Odesláno: 5. Prosinec, 2014 K posunování nahoru/dolu se používá souřadnice Z a ne Y! Doufám že máš bránu na souřadnicich 0,0,0 jinak ti to odjede vždycky.. Link to comment Share on other sites More sharing options...
FrOsTy14 4 Odesláno: 5. Prosinec, 2014 Author Share Odesláno: 5. Prosinec, 2014 K posunování nahoru/dolu se používá souřadnice Z a ne Y! Doufám že máš bránu na souřadnicich 0,0,0 jinak ti to odjede vždycky.. Mám tohle a pořád mi to ujíždí. brana = CreateObject(976,-1669.1000000,1418.0000000,149.5000000,0.0000000,0.0000000,39.9960000); Link to comment Share on other sites More sharing options...
Drifty 0 Odesláno: 5. Prosinec, 2014 Share Odesláno: 5. Prosinec, 2014 Mám tohle a pořád mi to ujíždí. brana = CreateObject(976,-1669.1000000,1418.0000000,149.5000000,0.0000000,0.0000000,39.9960000); Jelikož to je pouhý vytvořený object, nyní s ním pohni funkci MoveObject(brana,X,Y,Z,rychlost); + Nahoru, - Dolů .. Link to comment Share on other sites More sharing options...
FrOsTy14 4 Odesláno: 5. Prosinec, 2014 Author Share Odesláno: 5. Prosinec, 2014 Jelikož to je pouhý vytvořený object, nyní s ním pohni funkci MoveObject(brana,X,Y,Z,rychlost); + Nahoru, - Dolů .. Super díky a jak udělat aby šla zpátky na horu ? { if(strcmp(cmdtext, "/branao", true) == 0) { new string[50]; new movetime = MoveObject(brana,-1665.7998000,1420.9004000,138.1000100,3.0); format(string, sizeof(string), "Brána je otevřena", movetime); SendClientMessage(playerid, 0xFF000000, string); return 1; } return 0; } 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