public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
// if(PlayerCuffed[damagedid] = 1 && weaponid == 23) return 1;
if(issuerid != INVALID_PLAYER_ID && weaponid == 25 && weaponid == 27 &&( bodypart ==7||bodypart==8) )
{
ApplyAnimation(playerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
return 1;
}
if(issuerid != INVALID_PLAYER_ID)
{
ShotPlayer[issuerid][playerid] = gettime();
LastShot[playerid] = gettime();
switch(weaponid)
{
// case 23: DamagePlayer(playerid, 44);
// case 5: DamagePlayer(playerid, 13);
// case 24: DamagePlayer(playerid, 60);
// case 30: DamagePlayer(playerid, 20);
// case 31: DamagePlayer(playerid, 15);
// case 34: DamagePlayer(playerid, 60);
}
}
return 1;
}
Update your a_samp include and almost the other a_ includes. Thats because you're using old version while bodypart was added on samp 0.3z.
|