09.04.2014, 03:11
Hi,, does anyone know the animation like the skin does a backflip and falls down on the ground like a car hit him? he fly a few meters back, really need this....
CMD:lifejump(playerid, params[])
{
ApplyAnimation(playerid,"PED","EV_dive",4.0,0,1,1,1,0);
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 49 && bodypart == 3) //work with the bodypart{
ApplyAnimation(playerid,"PED","EV_dive",4.0,0,1,1,1,0);
SetPlayerHealth(playerid, 10.0);
}
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 49 && bodypart == 3) //work with the bodypart{
ApplyAnimation(playerid,"PED","EV_dive",4.0,0,1,1,1,0);
SetPlayerHealth(playerid, 10.0);
}
return 1;
}