public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(!IsPlayerInAnyVehicle(damagedid) && GetPlayerState(damagedid) == PLAYER_STATE_PASSENGER)
{
PlayAudioStream(damagedid, "http://audio.life-of-german.org/zombie/action/drive.mp3");
SetPlayerHealth(damgedid, GetPlayerHealth(damagedid)-5);
}
return 1;
}
So ist richtig glaub ich