18.01.2017, 12:54
Cuz you're setting the player life to -2.0. If a player life is less than zero, he have to die.
If you're trying to subtract 2.0 from player life you have to use GetPlayerHealth first (same for armour) and store it in a Float:variable, then SetPlayerHealth(playerid, variable - 2.0);
Tip: Don't mix integers and floats, use (-2.0) instead of (-2).
If you're trying to subtract 2.0 from player life you have to use GetPlayerHealth first (same for armour) and store it in a Float:variable, then SetPlayerHealth(playerid, variable - 2.0);
Tip: Don't mix integers and floats, use (-2.0) instead of (-2).