Jurajvocny 0 Odesláno: 30. Listopad, 2015 Share Odesláno: 30. Listopad, 2015 Ahojte. Ja sa chcem opýtať len to že ako mám spraviť to že hráčovi odpočíta 5 hp lebo SetPlayerHealth(playerid, -5) mu nastaví -5 hp. Ďakujem. Link to comment Share on other sites More sharing options...
0 Globální moderátor HighPrint 177 Odesláno: 30. Listopad, 2015 Globální moderátor Share Odesláno: 30. Listopad, 2015 zjisti jeho život a pak mu nastav tu hodnotu - 5. https://wiki.sa-mp.com/wiki/GetPlayerHealth Link to comment Share on other sites More sharing options...
0 Jurajvocny 0 Odesláno: 30. Listopad, 2015 Author Share Odesláno: 30. Listopad, 2015 zjisti jeho život a pak mu nastav tu hodnotu - 5. https://wiki.sa-mp.com/wiki/GetPlayerHealth Neviem ako. Link to comment Share on other sites More sharing options...
0 Globální moderátor HighPrint 177 Odesláno: 30. Listopad, 2015 Globální moderátor Share Odesláno: 30. Listopad, 2015 (upraveno) Nauč se používat wikinu, bude se ti v budoucnu hodit. Parametry funkce: playerid – The ID of the player. &Float:health – Float to store health, passed by reference. Máš tam i názorný příklad new Float:health;GetPlayerHealth(playerid,health); V health je uložená hodnota HP hráče playerid. Tak akorát nastavíš tu hodnotu mínus 5.0. SetPlayerHealth(playerid,health-5.0); Edited 30. Listopad, 2015 by HighPrint 1 Link to comment Share on other sites More sharing options...
0 Jurajvocny 0 Odesláno: 30. Listopad, 2015 Author Share Odesláno: 30. Listopad, 2015 Nauč se používat wikinu, bude se ti v budoucnu hodit. Parametry funkce: playerid – The ID of the player. &Float:health – Float to store health, passed by reference. Máš tam i názorný příklad new Float:health; GetPlayerHealth(playerid,health); V health je hodnota jeho HPček. Tak akorát SetPlayerHealth(playerid,health-5.0); Ok ďakujem. Link to comment Share on other sites More sharing options...
0 Polisek Polismanovic 76 Odesláno: 30. Listopad, 2015 Share Odesláno: 30. Listopad, 2015 Vyřešeno ? //Final Code new Float:health; GetPlayerHealth(playerid,health); SetPlayerHealth(playerid,health-5); Link to comment Share on other sites More sharing options...
Dotaz
Jurajvocny 0
Ahojte. Ja sa chcem opýtať len to že ako mám spraviť to že hráčovi odpočíta 5 hp lebo SetPlayerHealth(playerid, -5) mu nastaví -5 hp.
Ďakujem.
Link to comment
Share on other sites
5 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