13.08.2020, 20:22
pawn Code:
new bool:pIncosciente[MAX_PLAYER_NAME];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new Float:Vida;
GetPlayerHealth(playerid, Vida);
if(Vida <= 15.0)
{
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
TogglePlayerControllable(playerid, 0);
pIncosciente[playerid] = true;
}
return 1;
}
OBS: Sou novato estou aprendendo nao me julguem rsrsrs(mentira, a vontade kk )