06.06.2020, 19:32
So you are resetting the player variables:
then setting the player's health to the reset variable under OnPlayerRegister:
I hope the empty_player variable has health and armor set to 100.0?
pawn Code:
static const empty_player[E_PLAYERS];
Player[playerid] = empty_player;
pawn Code:
SetPlayerHealth(playerid, Player[playerid][Health]);
SetPlayerArmour(playerid, Player[playerid][Armor]);