public OnPlayerDeath(playerid, killerid, reason){ if(IsPlayerInAnyVehicle(playerid)) { //Do your things ... } return 1;}