Jump to content
  • 0

pomoc HP


Jurajvocny

Dotaz

5 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Globální moderátor

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 by HighPrint
  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 0

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...