22.10.2016, 21:50
alguem poderia me passar o codigo que faz quando, alguem bate no jogador com um carro e faz um barulho de sino?
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
if(playerid != INVALID_PLAYER_ID)
{
if(weaponid == WEAPON_VEHICLE)
{
PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0);
PlayerPlaySound(damagedid, 17802, 0.0, 0.0, 0.0);
}
}
return 1;
}