public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 24 && bodypart == 3 && amount == 50)
{
ApplyAnimation(playerid, "CRACK", "crckdeth1", 4.1, 1, 1, 1, 1, 1, 1);
SendClientMessage(playerid, -1, "Sucesso");
}
return 1;
}
Tenta trocar return 1; por return 0;, isto faz o seu cуdigo acima ser usado pelo servidor, se nгo me falha a memуria.
|
WEAPON_COLT45: 25 * 0.33 //8.25 WEAPON_SILENCED: 40 * 0.33 //13.200012 WEAPON_DEAGLE: 140 * 0.33 //46.200013 WEAPON_SHOTGUN: 10 * 0.33 //30.0 (probably because of pellets) WEAPON_SAWEDOFF: 10 * 0.33 //30.0 (probably because of pellets) WEAPON_SHOTGSPA: 15 * 0.33 //30.0 (probably because of pellets) WEAPON_UZI: 20 * 0.33 //6.599976 WEAPON_TEC9: 20 * 0.33//6.599976 WEAPON_MP5: 25 * 0.33 //8.25 WEAPON_AK47: 30 * 0.33 //9.900024 WEAPON_M4: 30 * 0.33 //9.900024 WEAPON_RIFLE: 75 * 0.33 //24.799987 WEAPON_SNIPER: 125 * 0.33 //41.299987 WEAPON_MINIGUN: 140 * 0.33 //46.200013
weaponid == 24 && amount == 50
Valores de dano padrгo no samp:
Код:
WEAPON_COLT45: 25 * 0.33 //8.25 WEAPON_SILENCED: 40 * 0.33 //13.200012 WEAPON_DEAGLE: 140 * 0.33 //46.200013 WEAPON_SHOTGUN: 10 * 0.33 //30.0 (probably because of pellets) WEAPON_SAWEDOFF: 10 * 0.33 //30.0 (probably because of pellets) WEAPON_SHOTGSPA: 15 * 0.33 //30.0 (probably because of pellets) WEAPON_UZI: 20 * 0.33 //6.599976 WEAPON_TEC9: 20 * 0.33//6.599976 WEAPON_MP5: 25 * 0.33 //8.25 WEAPON_AK47: 30 * 0.33 //9.900024 WEAPON_M4: 30 * 0.33 //9.900024 WEAPON_RIFLE: 75 * 0.33 //24.799987 WEAPON_SNIPER: 125 * 0.33 //41.299987 WEAPON_MINIGUN: 140 * 0.33 //46.200013 Код:
weaponid == 24 && amount == 50 |