21.02.2015, 12:22
I want to give 90 dmg when i launch anthrax,how can we give dmg to a player?
new Float:health; // Creates a float called "health"
GetPlayerHealth(playerid, health); // Stores the player's health in the float "health"
SetPlayerHealth(playerid, health - 90); // Sets the player's health to the float "health" - 90
Use SetPlayerHealth to set a player's health, if you wan't to apply damage, use GetPlayerHealth.
pawn Код:
|
SetPlayerHealth(playerid, health - 90.0);