Vidie 5 Odesláno: 25. Duben, 2012 Share Odesláno: 25. Duben, 2012 Ahoj ! Chtěl bych se zeptat, jestli jde udělat poškození vozidla %. Např. Vozidlo bude mít 900 HP a napíše se třeba. Poškození vozidla: 10% Pokud ano, mohl by mi někdo úvest příklad Jak? Děkuji. :-) Link to comment Share on other sites More sharing options...
0 Guest SpiRinG Odesláno: 25. Duben, 2012 Share Odesláno: 25. Duben, 2012 mislis Status vozidla ako Stav a poskodene napr Stav:60 Poskodene:40 Link to comment Share on other sites More sharing options...
0 Vidie 5 Odesláno: 25. Duben, 2012 Author Share Odesláno: 25. Duben, 2012 mislis Status vozidla ako Stav a poskodene napr Stav:60 Poskodene:40 Tak podobně, aby to prostě ukazovalo % poškození vozidla. Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 25. Duben, 2012 Share Odesláno: 25. Duben, 2012 new Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 28. Duben, 2012 Share Odesláno: 28. Duben, 2012 new Float:healthOfCar; GetVehicleHealth(GetPlayerVehicleID(playerid),healthOfCar); new Float:getDestroyed = healthOfCar / 10 + 100 - ( 2 * ( healthOfCar / 10 )); new str[128]; format(str,sizeof(str),"Auto máš zničené asi z %d procent!!",floatround(getDestroyed)); SendClientMessage(playerid,-1,str); Obyčejná matematika, nic jiného v tom není.. Link to comment Share on other sites More sharing options...
0 Glamorous 0 Odesláno: 30. Duben, 2012 Share Odesláno: 30. Duben, 2012 new Float:healthOfCar; GetVehicleHealth(GetPlayerVehicleID(playerid),healthOfCar); new Float:getDestroyed = 100 - (healthOfCar / 10); new str[128]; format(str,sizeof(str),"Auto máš zničené asi z %d procent!!",floatround(getDestroyed)); SendClientMessage(playerid,-1,str); nedalo by sa to aj takto? Link to comment Share on other sites More sharing options...
0 _Martin_ 10 Odesláno: 30. Duben, 2012 Share Odesláno: 30. Duben, 2012 To GetVehicleHealth vracia (keď nemá poškodenie auto) 1000 (hp) keď to vydelíš 10timi tak ti zostane 100. A ak som pochopil tomu 100-(health/10) tak by ukazovalo 0. Sprav to podľa QWERa Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 30. Duben, 2012 Share Odesláno: 30. Duben, 2012 To GetVehicleHealth vracia (keď nemá poškodenie auto) 1000 (hp) keď to vydelíš 10timi tak ti zostane 100. A ak som pochopil tomu 100-(health/10) tak by ukazovalo 0. Sprav to podľa QWERa Ale jestli sis přečetl HELP tak by ti to mohlo dojít, že já a Glamorous máme to co on chce. Link to comment Share on other sites More sharing options...
Dotaz
Vidie 5
Ahoj !
Chtěl bych se zeptat, jestli jde udělat poškození vozidla %.
Např. Vozidlo bude mít 900 HP a napíše se třeba. Poškození vozidla: 10%
Pokud ano, mohl by mi někdo úvest příklad Jak? Děkuji. :-)
Link to comment
Share on other sites
7 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